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 default
SpdySynStreamFrame
implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private byte
private boolean
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSpdySynStreamFrame
(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
Modifier and TypeMethodDescriptionint
Returns the Associated-To-Stream-ID of this frame.boolean
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.setAssociatedStreamId
(int associatedStreamId) Sets the Associated-To-Stream-ID of this frame.Marks this header block as invalid.setLast
(boolean last) Sets if this frame is the last frame to be transmitted on the stream.setPriority
(byte priority) Sets the priority of the stream.setStreamId
(int streamId) Sets the Stream-ID of this frame.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 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
-
Field Details
-
associatedStreamId
private int associatedStreamId -
priority
private byte priority -
unidirectional
private boolean unidirectional
-
-
Constructor Details
-
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 Details
-
setStreamId
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
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
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
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
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
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
-