public class SynInfo extends Object
A container for SYN_STREAM frames metadata and data.
Modifier and Type | Field and Description |
---|---|
static byte |
FLAG_CLOSE
Flag that indicates that this
DataInfo is the last frame in the stream. |
static byte |
FLAG_UNIDIRECTIONAL |
Constructor and Description |
---|
SynInfo(boolean close)
Creates a new
SynInfo instance with empty headers and the given close flag,
not unidirectional, without associated stream, and with default priority. |
SynInfo(Headers headers,
boolean close)
Creates a
ReplyInfo instance with the given headers and the given close flag,
not unidirectional, without associated stream, and with default priority. |
SynInfo(Headers headers,
boolean close,
boolean unidirectional,
int associatedStreamId,
byte priority)
Creates a
ReplyInfo instance with the given headers and the given close flag,
the given unidirectional flag, the given associated stream, and with the given priority. |
Modifier and Type | Method and Description |
---|---|
int |
getAssociatedStreamId() |
byte |
getFlags() |
Headers |
getHeaders() |
byte |
getPriority() |
boolean |
isClose() |
boolean |
isUnidirectional() |
String |
toString() |
public static final byte FLAG_CLOSE
Flag that indicates that this DataInfo
is the last frame in the stream.
isClose()
,
getFlags()
,
Constant Field Valuespublic static final byte FLAG_UNIDIRECTIONAL
public SynInfo(boolean close)
Creates a new SynInfo
instance with empty headers and the given close flag,
not unidirectional, without associated stream, and with default priority.
close
- the value of the close flagpublic SynInfo(Headers headers, boolean close)
Creates a ReplyInfo
instance with the given headers and the given close flag,
not unidirectional, without associated stream, and with default priority.
headers
- the Headers
close
- the value of the close flagpublic SynInfo(Headers headers, boolean close, boolean unidirectional, int associatedStreamId, byte priority)
Creates a ReplyInfo
instance with the given headers and the given close flag,
the given unidirectional flag, the given associated stream, and with the given priority.
headers
- the Headers
close
- the value of the close flagunidirectional
- the value of the unidirectional flagassociatedStreamId
- the associated stream idpriority
- the prioritypublic boolean isClose()
public boolean isUnidirectional()
public int getAssociatedStreamId()
public byte getPriority()
public byte getFlags()
FLAG_CLOSE
,
FLAG_UNIDIRECTIONAL
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.