Package io.netty.handler.codec.spdy
Class DefaultSpdySynStreamFrame
- java.lang.Object
-
- io.netty.handler.codec.spdy.DefaultSpdyStreamFrame
-
- io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame
-
- io.netty.handler.codec.spdy.DefaultSpdySynStreamFrame
-
- All Implemented Interfaces:
SpdyFrame,SpdyHeadersFrame,SpdyStreamFrame,SpdySynStreamFrame
public class DefaultSpdySynStreamFrame extends DefaultSpdyHeadersFrame implements SpdySynStreamFrame
The defaultSpdySynStreamFrameimplementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority)Creates a new instance.DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority, boolean validateHeaders)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intassociatedStreamId()Returns the Associated-To-Stream-ID of this frame.booleanisUnidirectional()Returnstrueif the stream created with this frame is to be considered half-closed to the receiver.bytepriority()Returns the priority of the stream.SpdySynStreamFramesetAssociatedStreamId(int associatedStreamId)Sets the Associated-To-Stream-ID of this frame.SpdySynStreamFramesetInvalid()Marks this header block as invalid.SpdySynStreamFramesetLast(boolean last)Sets if this frame is the last frame to be transmitted on the stream.SpdySynStreamFramesetPriority(byte priority)Sets the priority of the stream.SpdySynStreamFramesetStreamId(int streamId)Sets the Stream-ID of this frame.SpdySynStreamFramesetUnidirectional(boolean unidirectional)Sets if the stream created with this frame is to be considered half-closed to the receiver.java.lang.StringtoString()-
Methods inherited from class io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame
appendHeaders, headers, isInvalid, isTruncated, setTruncated
-
Methods inherited from class io.netty.handler.codec.spdy.DefaultSpdyStreamFrame
isLast, streamId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.spdy.SpdyHeadersFrame
headers, isInvalid, isTruncated, setTruncated
-
Methods inherited from interface io.netty.handler.codec.spdy.SpdyStreamFrame
isLast, streamId
-
-
-
-
Constructor Detail
-
DefaultSpdySynStreamFrame
public DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority)Creates a new instance.- Parameters:
streamId- the Stream-ID of this frameassociatedStreamId- the Associated-To-Stream-ID of this framepriority- the priority of the stream
-
DefaultSpdySynStreamFrame
public DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority, boolean validateHeaders)Creates a new instance.- Parameters:
streamId- the Stream-ID of this frameassociatedStreamId- the Associated-To-Stream-ID of this framepriority- the priority of the streamvalidateHeaders- validate the header names and values when adding them to theSpdyHeaders
-
-
Method Detail
-
setStreamId
public SpdySynStreamFrame setStreamId(int streamId)
Description copied from interface:SpdyStreamFrameSets the Stream-ID of this frame. The Stream-ID must be positive.- Specified by:
setStreamIdin interfaceSpdyHeadersFrame- Specified by:
setStreamIdin interfaceSpdyStreamFrame- Specified by:
setStreamIdin interfaceSpdySynStreamFrame- Overrides:
setStreamIdin classDefaultSpdyHeadersFrame
-
setLast
public SpdySynStreamFrame setLast(boolean last)
Description copied from interface:SpdyStreamFrameSets if this frame is the last frame to be transmitted on the stream.- Specified by:
setLastin interfaceSpdyHeadersFrame- Specified by:
setLastin interfaceSpdyStreamFrame- Specified by:
setLastin interfaceSpdySynStreamFrame- Overrides:
setLastin classDefaultSpdyHeadersFrame
-
setInvalid
public SpdySynStreamFrame setInvalid()
Description copied from interface:SpdyHeadersFrameMarks this header block as invalid.- Specified by:
setInvalidin interfaceSpdyHeadersFrame- Specified by:
setInvalidin interfaceSpdySynStreamFrame- Overrides:
setInvalidin classDefaultSpdyHeadersFrame
-
associatedStreamId
public int associatedStreamId()
Description copied from interface:SpdySynStreamFrameReturns the Associated-To-Stream-ID of this frame.- Specified by:
associatedStreamIdin interfaceSpdySynStreamFrame
-
setAssociatedStreamId
public SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId)
Description copied from interface:SpdySynStreamFrameSets the Associated-To-Stream-ID of this frame. The Associated-To-Stream-ID cannot be negative.- Specified by:
setAssociatedStreamIdin interfaceSpdySynStreamFrame
-
priority
public byte priority()
Description copied from interface:SpdySynStreamFrameReturns the priority of the stream.- Specified by:
priorityin interfaceSpdySynStreamFrame
-
setPriority
public SpdySynStreamFrame setPriority(byte priority)
Description copied from interface:SpdySynStreamFrameSets the priority of the stream. The priority must be between 0 and 7 inclusive.- Specified by:
setPriorityin interfaceSpdySynStreamFrame
-
isUnidirectional
public boolean isUnidirectional()
Description copied from interface:SpdySynStreamFrameReturnstrueif the stream created with this frame is to be considered half-closed to the receiver.- Specified by:
isUnidirectionalin interfaceSpdySynStreamFrame
-
setUnidirectional
public SpdySynStreamFrame setUnidirectional(boolean unidirectional)
Description copied from interface:SpdySynStreamFrameSets if the stream created with this frame is to be considered half-closed to the receiver.- Specified by:
setUnidirectionalin interfaceSpdySynStreamFrame
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDefaultSpdyHeadersFrame
-
-