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 defaultSpdySynStreamFrameimplementation.
-
-
Field Summary
Fields Modifier and Type Field Description private intassociatedToStreamIdprivate bytepriorityprivate booleanunidirectional
-
Constructor Summary
Constructors Constructor Description DefaultSpdySynStreamFrame(int streamId, int associatedToStreamId, byte priority)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAssociatedToStreamId()Returns the Associated-To-Stream-ID of this frame.bytegetPriority()Returns the priority of the stream.booleanisUnidirectional()Returnstrueif 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.java.lang.StringtoString()-
Methods inherited from class org.jboss.netty.handler.codec.spdy.DefaultSpdyHeadersFrame
appendHeaders, headers, isInvalid, isTruncated, setInvalid, setTruncated
-
Methods inherited from class org.jboss.netty.handler.codec.spdy.DefaultSpdyStreamFrame
getStreamId, isLast, setLast, setStreamId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.netty.handler.codec.spdy.SpdyHeadersFrame
headers, isInvalid, isTruncated, setInvalid, setTruncated
-
Methods inherited from interface org.jboss.netty.handler.codec.spdy.SpdyStreamFrame
getStreamId, isLast, setLast, setStreamId
-
-
-
-
Constructor Detail
-
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 Detail
-
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
public java.lang.String toString()
- Overrides:
toStringin classDefaultSpdyHeadersFrame
-
-