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 int
private byte
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpdySynStreamFrame
(int streamId, int associatedToStreamId, byte priority) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the Associated-To-Stream-ID of this frame.byte
Returns the priority of the stream.boolean
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.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
-
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: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
- Overrides:
toString
in classDefaultSpdyHeadersFrame
-