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 default
SpdySynStreamFrame implementation.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpdySynStreamFrame(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
Modifier and TypeMethodDescriptionintReturns the Associated-To-Stream-ID of this frame.booleanReturnstrueif the stream created with this frame is to be considered half-closed to the receiver.bytepriority()Returns the priority of the stream.setAssociatedStreamId(int associatedStreamId) Sets the Associated-To-Stream-ID of this frame.Marks this header block as invalid.setLast(boolean last) Sets if this frame is the last frame to be transmitted on the stream.setPriority(byte priority) Sets the priority of the stream.setStreamId(int streamId) Sets the Stream-ID of this frame.setUnidirectional(boolean unidirectional) Sets if the stream created with this frame is to be considered half-closed to the receiver.toString()Methods inherited from class DefaultSpdyHeadersFrame
appendHeaders, headers, isInvalid, isTruncated, setTruncatedMethods inherited from class DefaultSpdyStreamFrame
isLast, streamIdMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SpdyHeadersFrame
headers, isInvalid, isTruncated, setTruncatedMethods inherited from interface SpdyStreamFrame
isLast, streamId
-
Constructor Details
-
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 Details
-
setStreamId
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
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
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
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
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
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
- Overrides:
toStringin classDefaultSpdyHeadersFrame
-