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. |
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,
byte priority)
Creates a
ReplyInfo instance with the given headers, the given close flag and with the given priority. |
public static final byte FLAG_CLOSE
Flag that indicates that this DataInfo
is the last frame in the stream.
isClose()
,
getFlags()
,
Constant Field Valuespublic 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 boolean isClose()
public byte getPriority()
public byte getFlags()
FLAG_CLOSE
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.