Class DefaultSpdySynStreamFrame
java.lang.Object
org.jboss.netty.handler.codec.spdy.DefaultSpdyStreamFrame
org.jboss.netty.handler.codec.spdy.DefaultSpdyHeadersFrame
org.jboss.netty.handler.codec.spdy.DefaultSpdySynStreamFrame
- All Implemented Interfaces:
SpdyFrame,SpdyHeadersFrame,SpdyStreamFrame,SpdySynStreamFrame
public class DefaultSpdySynStreamFrame
extends DefaultSpdyHeadersFrame
implements SpdySynStreamFrame
The default
SpdySynStreamFrame implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate byteprivate boolean -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpdySynStreamFrame(int streamId, int associatedToStreamId, byte priority) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the Associated-To-Stream-ID of this frame.byteReturns the priority of the stream.booleanReturnstrueif the stream created with this frame is to be considered half-closed to the receiver.voidsetAssociatedToStreamId(int associatedToStreamId) Sets the Associated-To-Stream-ID of this frame.voidsetPriority(byte priority) Sets the priority of the stream.voidsetUnidirectional(boolean unidirectional) Sets if the stream created with this frame is to be considered half-closed to the receiver.toString()Methods inherited from class org.jboss.netty.handler.codec.spdy.DefaultSpdyHeadersFrame
appendHeaders, headers, isInvalid, isTruncated, setInvalid, setTruncatedMethods inherited from class org.jboss.netty.handler.codec.spdy.DefaultSpdyStreamFrame
getStreamId, isLast, setLast, setStreamIdMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.netty.handler.codec.spdy.SpdyHeadersFrame
headers, isInvalid, isTruncated, setInvalid, setTruncatedMethods inherited from interface org.jboss.netty.handler.codec.spdy.SpdyStreamFrame
getStreamId, isLast, setLast, setStreamId
-
Field Details
-
associatedToStreamId
private int associatedToStreamId -
priority
private byte priority -
unidirectional
private boolean unidirectional
-
-
Constructor Details
-
DefaultSpdySynStreamFrame
public DefaultSpdySynStreamFrame(int streamId, int associatedToStreamId, byte priority) Creates a new instance.- Parameters:
streamId- the Stream-ID of this frameassociatedToStreamId- the Associated-To-Stream-ID of this framepriority- the priority of the stream
-
-
Method Details
-
getAssociatedToStreamId
public int getAssociatedToStreamId()Description copied from interface:SpdySynStreamFrameReturns the Associated-To-Stream-ID of this frame.- Specified by:
getAssociatedToStreamIdin interfaceSpdySynStreamFrame
-
setAssociatedToStreamId
public void setAssociatedToStreamId(int associatedToStreamId) Description copied from interface:SpdySynStreamFrameSets the Associated-To-Stream-ID of this frame. The Associated-To-Stream-ID cannot be negative.- Specified by:
setAssociatedToStreamIdin interfaceSpdySynStreamFrame
-
getPriority
public byte getPriority()Description copied from interface:SpdySynStreamFrameReturns the priority of the stream.- Specified by:
getPriorityin interfaceSpdySynStreamFrame
-
setPriority
public void 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 void 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
- Overrides:
toStringin classDefaultSpdyHeadersFrame
-