Top Description Fields Constructors Methods
io.netty.handler.codec.spdy

public Class DefaultSpdySynStreamFrame

extends DefaultSpdyHeadersFrame
implements SpdySynStreamFrame
Class Inheritance
All Implemented Interfaces
io.netty.handler.codec.spdy.SpdySynStreamFrame, io.netty.handler.codec.spdy.SpdyHeadersFrame, io.netty.handler.codec.spdy.SpdyStreamFrame, io.netty.handler.codec.spdy.SpdyFrame
Static Imports
io.netty.util.internal.ObjectUtil.checkPositiveOrZero

The default SpdySynStreamFrame implementation.

Field Summary

Modifier and TypeField and Description
private int
private byte
private boolean

Constructor Summary

AccessConstructor and Description
public
DefaultSpdySynStreamFrame(int
the Stream-ID of this frame
streamId
,
int
the Associated-To-Stream-ID of this frame
associatedStreamId
,
byte
the priority of the stream
priority
)

Creates a new instance.

public
DefaultSpdySynStreamFrame(int
the Stream-ID of this frame
streamId
,
int
the Associated-To-Stream-ID of this frame
associatedStreamId
,
byte
the priority of the stream
priority
,
boolean
validate the header names and values when adding them to the SpdyHeaders
validateHeaders
)

Creates a new instance.

Method Summary

Modifier and TypeMethod and Description
public int
associatedStreamId()

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.associatedStreamId.

Returns the Associated-To-Stream-ID of this frame.
public boolean
isUnidirectional()

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.isUnidirectional.

Returns true if the stream created with this frame is to be considered half-closed to the receiver.
public byte
priority()

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.priority.

Returns the priority of the stream.
public SpdySynStreamFrame
setAssociatedStreamId(int associatedStreamId)

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setAssociatedStreamId.

Sets the Associated-To-Stream-ID of this frame.
public SpdySynStreamFrame
public SpdySynStreamFrame
public SpdySynStreamFrame
setPriority(byte priority)

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setPriority.

Sets the priority of the stream.
public SpdySynStreamFrame
public SpdySynStreamFrame
setUnidirectional(boolean unidirectional)

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setUnidirectional.

Sets if the stream created with this frame is to be considered half-closed to the receiver.
public String
toString()

Overrides io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame.toString.

Returns a string representation of the object.
Inherited from io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame:
appendHeadersheadersisInvalidisTruncatedsetTruncated

Field Detail

associatedStreamIdback to summary
private int associatedStreamId
priorityback to summary
private byte priority
unidirectionalback to summary
private boolean unidirectional

Constructor Detail

DefaultSpdySynStreamFrameback to summary
public DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority)

Creates a new instance.

Parameters
streamId:int

the Stream-ID of this frame

associatedStreamId:int

the Associated-To-Stream-ID of this frame

priority:byte

the priority of the stream

DefaultSpdySynStreamFrameback to summary
public DefaultSpdySynStreamFrame(int streamId, int associatedStreamId, byte priority, boolean validateHeaders)

Creates a new instance.

Parameters
streamId:int

the Stream-ID of this frame

associatedStreamId:int

the Associated-To-Stream-ID of this frame

priority:byte

the priority of the stream

validateHeaders:boolean

validate the header names and values when adding them to the SpdyHeaders

Method Detail

associatedStreamIdback to summary
public int associatedStreamId()

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.associatedStreamId.

Doc from io.netty.handler.codec.spdy.SpdySynStreamFrame.associatedStreamId.

Returns the Associated-To-Stream-ID of this frame.

Annotations
@Override
isUnidirectionalback to summary
public boolean isUnidirectional()

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.isUnidirectional.

Doc from io.netty.handler.codec.spdy.SpdySynStreamFrame.isUnidirectional.

Returns true if the stream created with this frame is to be considered half-closed to the receiver.

Annotations
@Override
priorityback to summary
public byte priority()

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.priority.

Doc from io.netty.handler.codec.spdy.SpdySynStreamFrame.priority.

Returns the priority of the stream.

Annotations
@Override
setAssociatedStreamIdback to summary
public SpdySynStreamFrame setAssociatedStreamId(int associatedStreamId)

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setAssociatedStreamId.

Doc from io.netty.handler.codec.spdy.SpdySynStreamFrame.setAssociatedStreamId.

Sets the Associated-To-Stream-ID of this frame. The Associated-To-Stream-ID cannot be negative.

Annotations
@Override
setInvalidback to summary
public SpdySynStreamFrame setInvalid()

Overrides io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame.setInvalid.

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setInvalid, io.netty.handler.codec.spdy.SpdyHeadersFrame.setInvalid.

Doc from io.netty.handler.codec.spdy.SpdyHeadersFrame.setInvalid.

Marks this header block as invalid.

Annotations
@Override
setLastback to summary
public SpdySynStreamFrame setLast(boolean last)

Overrides io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame.setLast.

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setLast, io.netty.handler.codec.spdy.SpdyHeadersFrame.setLast, io.netty.handler.codec.spdy.SpdyStreamFrame.setLast.

Doc from io.netty.handler.codec.spdy.SpdyStreamFrame.setLast.

Sets if this frame is the last frame to be transmitted on the stream.

Annotations
@Override
setPriorityback to summary
public SpdySynStreamFrame setPriority(byte priority)

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setPriority.

Doc from io.netty.handler.codec.spdy.SpdySynStreamFrame.setPriority.

Sets the priority of the stream. The priority must be between 0 and 7 inclusive.

Annotations
@Override
setStreamIdback to summary
public SpdySynStreamFrame setStreamId(int streamId)

Overrides io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame.setStreamId.

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setStreamId, io.netty.handler.codec.spdy.SpdyHeadersFrame.setStreamId, io.netty.handler.codec.spdy.SpdyStreamFrame.setStreamId.

Doc from io.netty.handler.codec.spdy.SpdyStreamFrame.setStreamId.

Sets the Stream-ID of this frame. The Stream-ID must be positive.

Annotations
@Override
setUnidirectionalback to summary
public SpdySynStreamFrame setUnidirectional(boolean unidirectional)

Implements io.netty.handler.codec.spdy.SpdySynStreamFrame.setUnidirectional.

Doc from io.netty.handler.codec.spdy.SpdySynStreamFrame.setUnidirectional.

Sets if the stream created with this frame is to be considered half-closed to the receiver.

Annotations
@Override
toStringback to summary
public String toString()

Overrides io.netty.handler.codec.spdy.DefaultSpdyHeadersFrame.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override