Package io.netty.handler.codec.spdy
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 defaultSpdySynStreamFrame
implementation.
-
-
Constructor Summary
Constructors Constructor Description DefaultSpdySynStreamFrame(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
associatedStreamId()
Returns the Associated-To-Stream-ID of this frame.boolean
isUnidirectional()
Returnstrue
if the stream created with this frame is to be considered half-closed to the receiver.byte
priority()
Returns the priority of the stream.SpdySynStreamFrame
setAssociatedStreamId(int associatedStreamId)
Sets the Associated-To-Stream-ID of this frame.SpdySynStreamFrame
setInvalid()
Marks this header block as invalid.SpdySynStreamFrame
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.SpdySynStreamFrame
setPriority(byte priority)
Sets the priority of the stream.SpdySynStreamFrame
setStreamId(int streamId)
Sets the Stream-ID of this frame.SpdySynStreamFrame
setUnidirectional(boolean unidirectional)
Sets if the stream created with this frame is to be considered half-closed to the receiver.java.lang.String
toString()
-
Methods inherited from class io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame
appendHeaders, headers, isInvalid, isTruncated, setTruncated
-
Methods inherited from class io.netty.handler.codec.spdy.DefaultSpdyStreamFrame
isLast, streamId
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty.handler.codec.spdy.SpdyHeadersFrame
headers, isInvalid, isTruncated, setTruncated
-
Methods inherited from interface io.netty.handler.codec.spdy.SpdyStreamFrame
isLast, streamId
-
-
-
-
Constructor Detail
-
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 Detail
-
setStreamId
public SpdySynStreamFrame setStreamId(int streamId)
Description copied from interface:SpdyStreamFrame
Sets the Stream-ID of this frame. The Stream-ID must be positive.- Specified by:
setStreamId
in interfaceSpdyHeadersFrame
- Specified by:
setStreamId
in interfaceSpdyStreamFrame
- Specified by:
setStreamId
in interfaceSpdySynStreamFrame
- Overrides:
setStreamId
in classDefaultSpdyHeadersFrame
-
setLast
public SpdySynStreamFrame setLast(boolean last)
Description copied from interface:SpdyStreamFrame
Sets if this frame is the last frame to be transmitted on the stream.- Specified by:
setLast
in interfaceSpdyHeadersFrame
- Specified by:
setLast
in interfaceSpdyStreamFrame
- Specified by:
setLast
in interfaceSpdySynStreamFrame
- Overrides:
setLast
in classDefaultSpdyHeadersFrame
-
setInvalid
public SpdySynStreamFrame setInvalid()
Description copied from interface:SpdyHeadersFrame
Marks this header block as invalid.- Specified by:
setInvalid
in interfaceSpdyHeadersFrame
- Specified by:
setInvalid
in interfaceSpdySynStreamFrame
- Overrides:
setInvalid
in classDefaultSpdyHeadersFrame
-
associatedStreamId
public int associatedStreamId()
Description copied from interface:SpdySynStreamFrame
Returns the Associated-To-Stream-ID of this frame.- Specified by:
associatedStreamId
in interfaceSpdySynStreamFrame
-
setAssociatedStreamId
public SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId)
Description copied from interface:SpdySynStreamFrame
Sets the Associated-To-Stream-ID of this frame. The Associated-To-Stream-ID cannot be negative.- Specified by:
setAssociatedStreamId
in interfaceSpdySynStreamFrame
-
priority
public byte priority()
Description copied from interface:SpdySynStreamFrame
Returns the priority of the stream.- Specified by:
priority
in interfaceSpdySynStreamFrame
-
setPriority
public SpdySynStreamFrame 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 SpdySynStreamFrame 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 java.lang.String toString()
- Overrides:
toString
in classDefaultSpdyHeadersFrame
-
-