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 defaultSpdySynStreamFrame
implementation.
-
-
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 int
getAssociatedToStreamId()
Returns the Associated-To-Stream-ID of this frame.byte
getPriority()
Returns the priority of the stream.boolean
isUnidirectional()
Returnstrue
if the stream created with this frame is to be considered half-closed to the receiver.void
setAssociatedToStreamId(int associatedToStreamId)
Sets the Associated-To-Stream-ID of this frame.void
setPriority(byte priority)
Sets the priority of the stream.void
setUnidirectional(boolean unidirectional)
Sets if the stream created with this frame is to be considered half-closed to the receiver.String
toString()
-
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:SpdySynStreamFrame
Returns the Associated-To-Stream-ID of this frame.- Specified by:
getAssociatedToStreamId
in interfaceSpdySynStreamFrame
-
setAssociatedToStreamId
public void setAssociatedToStreamId(int associatedToStreamId)
Description copied from interface:SpdySynStreamFrame
Sets the Associated-To-Stream-ID of this frame. The Associated-To-Stream-ID cannot be negative.- Specified by:
setAssociatedToStreamId
in interfaceSpdySynStreamFrame
-
getPriority
public byte getPriority()
Description copied from interface:SpdySynStreamFrame
Returns the priority of the stream.- Specified by:
getPriority
in interfaceSpdySynStreamFrame
-
setPriority
public void setPriority(byte priority)
Description copied from interface:SpdySynStreamFrame
Sets the priority of the stream. The priority must be between 0 and 7 inclusive.- Specified by:
setPriority
in interfaceSpdySynStreamFrame
-
isUnidirectional
public boolean isUnidirectional()
Description copied from interface:SpdySynStreamFrame
Returnstrue
if the stream created with this frame is to be considered half-closed to the receiver.- Specified by:
isUnidirectional
in interfaceSpdySynStreamFrame
-
setUnidirectional
public void setUnidirectional(boolean unidirectional)
Description copied from interface:SpdySynStreamFrame
Sets if the stream created with this frame is to be considered half-closed to the receiver.- Specified by:
setUnidirectional
in interfaceSpdySynStreamFrame
-
toString
public String toString()
- Overrides:
toString
in classDefaultSpdyHeadersFrame
-
-