Class SpdyCodecUtil
java.lang.Object
org.jboss.netty.handler.codec.spdy.SpdyCodecUtil
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final byte
(package private) static final int
(package private) static final byte[]
(package private) static final byte
(package private) static final byte
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final int
(package private) static final byte
(package private) static final int
(package private) static final int
(package private) static final byte
(package private) static final byte
(package private) static final int
(package private) static final int
(package private) static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static int
getSignedInt
(ChannelBuffer buf, int offset) Reads a big-endian signed integer from the buffer.(package private) static int
getUnsignedInt
(ChannelBuffer buf, int offset) Reads a big-endian (31-bit) integer from the buffer.(package private) static int
getUnsignedMedium
(ChannelBuffer buf, int offset) Reads a big-endian unsigned medium integer from the buffer.(package private) static int
getUnsignedShort
(ChannelBuffer buf, int offset) Reads a big-endian unsigned short integer from the buffer.(package private) static boolean
isServerId
(int id) Returnstrue
if ID is for a server initiated stream or ping.(package private) static void
validateHeaderName
(String name) Validate a SPDY header name.(package private) static void
validateHeaderValue
(String value) Validate a SPDY header value.
-
Field Details
-
SPDY_SESSION_STREAM_ID
static final int SPDY_SESSION_STREAM_ID- See Also:
-
SPDY_HEADER_TYPE_OFFSET
static final int SPDY_HEADER_TYPE_OFFSET- See Also:
-
SPDY_HEADER_FLAGS_OFFSET
static final int SPDY_HEADER_FLAGS_OFFSET- See Also:
-
SPDY_HEADER_LENGTH_OFFSET
static final int SPDY_HEADER_LENGTH_OFFSET- See Also:
-
SPDY_HEADER_SIZE
static final int SPDY_HEADER_SIZE- See Also:
-
SPDY_MAX_LENGTH
static final int SPDY_MAX_LENGTH- See Also:
-
SPDY_DATA_FLAG_FIN
static final byte SPDY_DATA_FLAG_FIN- See Also:
-
SPDY_DATA_FRAME
static final int SPDY_DATA_FRAME- See Also:
-
SPDY_SYN_STREAM_FRAME
static final int SPDY_SYN_STREAM_FRAME- See Also:
-
SPDY_SYN_REPLY_FRAME
static final int SPDY_SYN_REPLY_FRAME- See Also:
-
SPDY_RST_STREAM_FRAME
static final int SPDY_RST_STREAM_FRAME- See Also:
-
SPDY_SETTINGS_FRAME
static final int SPDY_SETTINGS_FRAME- See Also:
-
SPDY_PUSH_PROMISE_FRAME
static final int SPDY_PUSH_PROMISE_FRAME- See Also:
-
SPDY_PING_FRAME
static final int SPDY_PING_FRAME- See Also:
-
SPDY_GOAWAY_FRAME
static final int SPDY_GOAWAY_FRAME- See Also:
-
SPDY_HEADERS_FRAME
static final int SPDY_HEADERS_FRAME- See Also:
-
SPDY_WINDOW_UPDATE_FRAME
static final int SPDY_WINDOW_UPDATE_FRAME- See Also:
-
SPDY_FLAG_FIN
static final byte SPDY_FLAG_FIN- See Also:
-
SPDY_FLAG_UNIDIRECTIONAL
static final byte SPDY_FLAG_UNIDIRECTIONAL- See Also:
-
SPDY_SETTINGS_CLEAR
static final byte SPDY_SETTINGS_CLEAR- See Also:
-
SPDY_SETTINGS_PERSIST_VALUE
static final byte SPDY_SETTINGS_PERSIST_VALUE- See Also:
-
SPDY_SETTINGS_PERSISTED
static final byte SPDY_SETTINGS_PERSISTED- See Also:
-
SPDY_SETTINGS_MAX_ID
static final int SPDY_SETTINGS_MAX_ID- See Also:
-
SPDY_MAX_NV_LENGTH
static final int SPDY_MAX_NV_LENGTH- See Also:
-
SPDY_DICT
static final byte[] SPDY_DICT
-
-
Constructor Details
-
SpdyCodecUtil
private SpdyCodecUtil()
-
-
Method Details
-
getUnsignedShort
Reads a big-endian unsigned short integer from the buffer. -
getUnsignedMedium
Reads a big-endian unsigned medium integer from the buffer. -
getUnsignedInt
Reads a big-endian (31-bit) integer from the buffer. -
getSignedInt
Reads a big-endian signed integer from the buffer. -
isServerId
static boolean isServerId(int id) Returnstrue
if ID is for a server initiated stream or ping. -
validateHeaderName
Validate a SPDY header name. -
validateHeaderValue
Validate a SPDY header value. Does not validate max length.
-