Package | Description |
---|---|
org.glassfish.grizzly.http | |
org.glassfish.grizzly.http.ajp | |
org.glassfish.grizzly.http.io | |
org.glassfish.grizzly.http.server | |
org.glassfish.grizzly.spdy |
Modifier and Type | Class and Description |
---|---|
class |
HttpRequestPacket
The
HttpHeader object, which represents HTTP request message. |
class |
HttpResponsePacket
The
HttpHeader object, which represents HTTP response message. |
Modifier and Type | Field and Description |
---|---|
protected HttpHeader |
HttpContent.httpHeader |
protected HttpHeader |
HttpContent.Builder.httpHeader |
Modifier and Type | Method and Description |
---|---|
HttpHeader |
HttpHeader.Builder.build() |
protected HttpHeader |
HttpResponsePacket.Builder.create() |
protected HttpHeader |
HttpRequestPacket.Builder.create() |
protected abstract HttpHeader |
HttpHeader.Builder.create() |
abstract HttpHeader |
HttpPacket.getHttpHeader()
Get the HTTP message header, associated with this HTTP packet.
|
HttpHeader |
HttpContent.getHttpHeader()
Get the HTTP message header, associated with this content.
|
HttpHeader |
HttpHeader.getHttpHeader()
Returns this HttpHeader object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
EncodingFilter.applyDecoding(HttpHeader httpPacket) |
boolean |
EncodingFilter.applyEncoding(HttpHeader httpPacket) |
static HttpBrokenContent.Builder |
HttpBrokenContent.builder(HttpHeader httpHeader)
Returns
HttpTrailer builder. |
static HttpTrailer.Builder |
HttpTrailer.builder(HttpHeader httpHeader)
Returns
HttpTrailer builder. |
static HttpContent.Builder |
HttpContent.builder(HttpHeader httpHeader)
Returns
HttpContent builder. |
static HttpBrokenContent |
HttpBrokenContent.create(HttpHeader httpHeader) |
static HttpTrailer |
HttpTrailer.create(HttpHeader httpHeader) |
static HttpContent |
HttpContent.create(HttpHeader httpHeader) |
static HttpContent |
HttpContent.create(HttpHeader httpHeader,
boolean isLast) |
static HttpContent |
HttpContent.create(HttpHeader httpHeader,
boolean isLast,
Buffer content) |
static HttpEvents.IncomingHttpUpgradeEvent |
HttpEvents.createIncomingUpgradeEvent(HttpHeader httpHeader) |
static HttpEvents.OutgoingHttpUpgradeEvent |
HttpEvents.createOutgoingUpgradeEvent(HttpHeader httpHeader) |
protected Buffer |
HttpCodecFilter.encodeHttpPacket(FilterChainContext ctx,
HttpHeader httpHeader,
HttpContent httpContent,
boolean isContentAlreadyEncoded) |
protected static Buffer |
HttpCodecFilter.encodeKnownHeaders(MemoryManager memoryManager,
Buffer buffer,
HttpHeader httpHeader) |
T |
HttpContent.Builder.httpHeader(HttpHeader httpHeader)
Set the
HttpHeader associated with this content. |
void |
HttpProbe.onContentEncodingParseEvent(Connection connection,
HttpHeader header,
Buffer buffer,
ContentEncoding contentEncoding)
Method will be called, when
ContentEncoding will be applied
during the parsing/decoding of the certain HTTP message content chunk. |
void |
HttpProbe.Adapter.onContentEncodingParseEvent(Connection connection,
HttpHeader header,
Buffer buffer,
ContentEncoding contentEncoding)
Method will be called, when
ContentEncoding will be applied
during the parsing/decoding of the certain HTTP message content chunk. |
void |
HttpProbe.onContentEncodingParseResultEvent(Connection connection,
HttpHeader header,
Buffer result,
ContentEncoding contentEncoding)
This method will be called after the
ContentEncoding has been
applied. |
void |
HttpProbe.Adapter.onContentEncodingParseResultEvent(Connection connection,
HttpHeader header,
Buffer result,
ContentEncoding contentEncoding)
This method will be called after the
ContentEncoding has been
applied. |
void |
HttpProbe.onContentEncodingSerializeEvent(Connection connection,
HttpHeader header,
Buffer buffer,
ContentEncoding contentEncoding)
/**
Method will be called, when
ContentEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk. |
void |
HttpProbe.Adapter.onContentEncodingSerializeEvent(Connection connection,
HttpHeader header,
Buffer buffer,
ContentEncoding contentEncoding)
/**
Method will be called, when
ContentEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk. |
void |
HttpProbe.onContentEncodingSerializeResultEvent(Connection connection,
HttpHeader header,
Buffer result,
ContentEncoding contentEncoding)
Method will be called, when
ContentEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk. |
void |
HttpProbe.Adapter.onContentEncodingSerializeResultEvent(Connection connection,
HttpHeader header,
Buffer result,
ContentEncoding contentEncoding)
Method will be called, when
ContentEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk. |
void |
HttpProbe.onHeaderParseEvent(Connection connection,
HttpHeader header,
int size)
Method will be called, when HTTP message header gets parsed
(either request or response).
|
void |
HttpProbe.Adapter.onHeaderParseEvent(Connection connection,
HttpHeader header,
int size)
Method will be called, when HTTP message header gets parsed
(either request or response).
|
void |
HttpProbe.onHeaderSerializeEvent(Connection connection,
HttpHeader header,
Buffer buffer)
Method will be called, when HTTP message header gets serialized
(either request or response).
|
void |
HttpProbe.Adapter.onHeaderSerializeEvent(Connection connection,
HttpHeader header,
Buffer buffer)
Method will be called, when HTTP message header gets serialized
(either request or response).
|
protected void |
HttpClientFilter.onHttpContentError(HttpHeader httpHeader,
FilterChainContext ctx,
Throwable t) |
protected void |
HttpServerFilter.onHttpContentError(HttpHeader httpHeader,
FilterChainContext ctx,
Throwable t) |
protected abstract void |
HttpCodecFilter.onHttpContentError(HttpHeader httpHeader,
FilterChainContext ctx,
Throwable t)
Callback which is invoked when parsing an HTTP message payload fails.
|
protected void |
HttpClientFilter.onHttpHeaderError(HttpHeader httpHeader,
FilterChainContext ctx,
Throwable t) |
protected void |
HttpServerFilter.onHttpHeaderError(HttpHeader httpHeader,
FilterChainContext ctx,
Throwable t) |
protected abstract void |
HttpCodecFilter.onHttpHeaderError(HttpHeader httpHeader,
FilterChainContext ctx,
Throwable t)
Callback which is invoked when parsing an HTTP message header fails.
|
protected boolean |
HttpClientFilter.onHttpHeaderParsed(HttpHeader httpHeader,
Buffer buffer,
FilterChainContext ctx) |
protected boolean |
HttpServerFilter.onHttpHeaderParsed(HttpHeader httpHeader,
Buffer buffer,
FilterChainContext ctx) |
protected abstract boolean |
HttpCodecFilter.onHttpHeaderParsed(HttpHeader httpHeader,
Buffer buffer,
FilterChainContext ctx)
Callback invoked when the HTTP message header parsing is complete.
|
protected void |
HttpClientFilter.onHttpHeadersEncoded(HttpHeader httpHeader,
FilterChainContext ctx) |
protected void |
HttpServerFilter.onHttpHeadersEncoded(HttpHeader httpHeader,
FilterChainContext ctx) |
protected abstract void |
HttpCodecFilter.onHttpHeadersEncoded(HttpHeader httpHeader,
FilterChainContext ctx)
Invoked when HTTP headers have been encoded in preparation to being
transmitted to the user-agent.
|
protected void |
HttpClientFilter.onHttpHeadersParsed(HttpHeader httpHeader,
FilterChainContext ctx) |
protected void |
HttpServerFilter.onHttpHeadersParsed(HttpHeader httpHeader,
FilterChainContext ctx) |
protected abstract void |
HttpCodecFilter.onHttpHeadersParsed(HttpHeader httpHeader,
FilterChainContext ctx)
Invoked when all headers of the packet have been parsed.
|
protected boolean |
HttpClientFilter.onHttpPacketParsed(HttpHeader httpHeader,
FilterChainContext ctx) |
protected boolean |
HttpServerFilter.onHttpPacketParsed(HttpHeader httpHeader,
FilterChainContext ctx) |
protected abstract boolean |
HttpCodecFilter.onHttpPacketParsed(HttpHeader httpHeader,
FilterChainContext ctx)
Callback method, called when
HttpPacket parsing has been completed. |
protected void |
HttpCodecFilter.onIncomingUpgrade(FilterChainContext ctx,
HttpHeader httpHeader)
The method is called, when a peer sends an upgrade HTTP packet
(either request or response).
|
protected void |
HttpClientFilter.onInitialLineEncoded(HttpHeader header,
FilterChainContext ctx) |
protected void |
HttpServerFilter.onInitialLineEncoded(HttpHeader header,
FilterChainContext ctx) |
protected abstract void |
HttpCodecFilter.onInitialLineEncoded(HttpHeader httpHeader,
FilterChainContext ctx)
Invoked when the intial response line has been encoded in preparation
to being transmitted to the user-agent.
|
protected void |
HttpClientFilter.onInitialLineParsed(HttpHeader httpHeader,
FilterChainContext ctx) |
protected void |
HttpServerFilter.onInitialLineParsed(HttpHeader httpHeader,
FilterChainContext ctx) |
protected abstract void |
HttpCodecFilter.onInitialLineParsed(HttpHeader httpHeader,
FilterChainContext ctx)
Invoked when either the request line or status line has been parsed.
|
protected void |
HttpCodecFilter.onOutgoingUpgrade(FilterChainContext ctx,
HttpHeader httpHeader) |
void |
HttpProbe.onTransferEncodingParseEvent(Connection connection,
HttpHeader header,
Buffer buffer,
TransferEncoding transferEncoding)
Method will be called, when
TransferEncoding will be applied
during the parsing/decoding of the certain HTTP message content chunk. |
void |
HttpProbe.Adapter.onTransferEncodingParseEvent(Connection connection,
HttpHeader header,
Buffer buffer,
TransferEncoding transferEncoding)
Method will be called, when
TransferEncoding will be applied
during the parsing/decoding of the certain HTTP message content chunk. |
void |
HttpProbe.onTransferEncodingSerializeEvent(Connection connection,
HttpHeader header,
Buffer buffer,
TransferEncoding transferEncoding)
Method will be called, when
TransferEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk. |
void |
HttpProbe.Adapter.onTransferEncodingSerializeEvent(Connection connection,
HttpHeader header,
Buffer buffer,
TransferEncoding transferEncoding)
Method will be called, when
TransferEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk. |
protected static boolean |
HttpCodecFilter.parseHeaderFromBuffer(HttpHeader httpHeader,
MimeHeaders mimeHeaders,
HttpCodecFilter.HeaderParsingState parsingState,
Buffer input) |
protected static boolean |
HttpCodecFilter.parseHeaderFromBytes(HttpHeader httpHeader,
MimeHeaders mimeHeaders,
HttpCodecFilter.HeaderParsingState parsingState,
byte[] input,
int end) |
protected static boolean |
HttpCodecFilter.parseHeaderName(HttpHeader httpHeader,
MimeHeaders mimeHeaders,
HttpCodecFilter.HeaderParsingState parsingState,
Buffer input) |
protected static boolean |
HttpCodecFilter.parseHeaderName(HttpHeader httpHeader,
MimeHeaders mimeHeaders,
HttpCodecFilter.HeaderParsingState parsingState,
byte[] input,
int end) |
protected boolean |
HttpCodecFilter.parseHeadersFromBuffer(HttpHeader httpHeader,
MimeHeaders mimeHeaders,
HttpCodecFilter.HeaderParsingState parsingState,
Buffer input) |
protected boolean |
HttpCodecFilter.parseHeadersFromBytes(HttpHeader httpHeader,
MimeHeaders mimeHeaders,
HttpCodecFilter.HeaderParsingState parsingState,
byte[] input,
int end) |
protected static int |
HttpCodecFilter.parseHeaderValue(HttpHeader httpHeader,
HttpCodecFilter.HeaderParsingState parsingState,
Buffer input) |
protected static int |
HttpCodecFilter.parseHeaderValue(HttpHeader httpHeader,
HttpCodecFilter.HeaderParsingState parsingState,
byte[] input,
int end) |
ParsingResult |
FixedLengthTransferEncoding.parsePacket(FilterChainContext ctx,
HttpHeader httpPacket,
Buffer input)
Parse HTTP packet payload, represented by
Buffer using specific
transfer encoding. |
ParsingResult |
TransferEncoding.parsePacket(FilterChainContext ctx,
HttpHeader httpPacket,
Buffer buffer)
Parse HTTP packet payload, represented by
Buffer using specific
transfer encoding. |
ParsingResult |
ChunkedTransferEncoding.parsePacket(FilterChainContext ctx,
HttpHeader httpPacket,
Buffer buffer)
Parse HTTP packet payload, represented by
Buffer using specific
transfer encoding. |
void |
FixedLengthTransferEncoding.prepareSerialize(FilterChainContext ctx,
HttpHeader httpHeader,
HttpContent httpContent) |
void |
TransferEncoding.prepareSerialize(FilterChainContext ctx,
HttpHeader httpHeader,
HttpContent content)
This method will be called by
HttpCodecFilter to let
TransferEncoding prepare itself for the content serialization. |
void |
ChunkedTransferEncoding.prepareSerialize(FilterChainContext ctx,
HttpHeader httpHeader,
HttpContent content)
This method will be called by
HttpCodecFilter to let
TransferEncoding prepare itself for the content serialization. |
boolean |
FixedLengthTransferEncoding.wantDecode(HttpHeader httpPacket)
Return true if this encoding should be used to parse the
content of the passed
HttpHeader , or false otherwise. |
boolean |
TransferEncoding.wantDecode(HttpHeader httpPacket)
Return true if this encoding should be used to parse the
content of the passed
HttpHeader , or false otherwise. |
boolean |
ChunkedTransferEncoding.wantDecode(HttpHeader httpPacket)
Return true if this encoding should be used to parse the
content of the passed
HttpHeader , or false otherwise. |
boolean |
LZMAContentEncoding.wantDecode(HttpHeader header) |
boolean |
ContentEncoding.wantDecode(HttpHeader header)
Method should implement the logic, which decides if HTTP packet with
the specific
HttpHeader should be decoded using this ContentEncoding. |
boolean |
GZipContentEncoding.wantDecode(HttpHeader header) |
boolean |
FixedLengthTransferEncoding.wantEncode(HttpHeader httpPacket)
Return true if this encoding should be used to serialize the
content of the passed
HttpHeader , or false otherwise. |
boolean |
TransferEncoding.wantEncode(HttpHeader httpPacket)
Return true if this encoding should be used to serialize the
content of the passed
HttpHeader , or false otherwise. |
boolean |
ChunkedTransferEncoding.wantEncode(HttpHeader httpPacket)
Return true if this encoding should be used to serialize the
content of the passed
HttpHeader , or false otherwise. |
boolean |
LZMAContentEncoding.wantEncode(HttpHeader header) |
boolean |
ContentEncoding.wantEncode(HttpHeader header)
Method should implement the logic, which decides if HTTP packet with
the specific
HttpHeader should be encoded using this ContentEncoding. |
boolean |
GZipContentEncoding.wantEncode(HttpHeader header) |
Constructor and Description |
---|
HttpBrokenContent(HttpHeader httpHeader) |
HttpContent(HttpHeader httpHeader) |
HttpContent(HttpHeader httpHeader,
boolean isLast,
Buffer content) |
HttpTrailer(HttpHeader httpHeader) |
Modifier and Type | Class and Description |
---|---|
class |
AjpHttpRequest
HttpRequestPacket implementation, which also contains AJP
related meta data. |
class |
AjpHttpResponse
HttpResponsePacket implementation, which also contains AJP
related meta data. |
Modifier and Type | Method and Description |
---|---|
void |
OutputBuffer.initialize(HttpHeader outputHeader,
boolean sendfileEnabled,
FilterChainContext ctx) |
void |
InputBuffer.initialize(HttpHeader httpHeader,
FilterChainContext ctx)
Per-request initialization required for the InputBuffer to function
properly.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CompressionEncodingFilter.applyDecoding(HttpHeader httpPacket) |
boolean |
CompressionEncodingFilter.applyEncoding(HttpHeader httpPacket) |
Modifier and Type | Method and Description |
---|---|
protected HttpHeader |
SpdySession.UnidirectionalBuilder.create() |
protected HttpHeader |
SpdySession.BidirectionalBuilder.create() |
Modifier and Type | Method and Description |
---|---|
static SpdyStream |
SpdyStream.getSpdyStream(HttpHeader httpHeader) |
protected void |
SpdyHandlerFilter.onHttpContentError(HttpHeader httpHeader,
FilterChainContext ctx,
Throwable t)
Callback which is invoked when parsing an HTTP message payload fails.
|
protected void |
SpdyHandlerFilter.onHttpHeaderError(HttpHeader httpHeader,
FilterChainContext ctx,
Throwable t)
Callback which is invoked when parsing an HTTP message header fails.
|
protected boolean |
SpdyHandlerFilter.onHttpHeaderParsed(HttpHeader httpHeader,
Buffer buffer,
FilterChainContext ctx)
Callback invoked when the HTTP message header parsing is complete.
|
protected void |
SpdyHandlerFilter.onHttpHeadersEncoded(HttpHeader httpHeader,
FilterChainContext ctx)
Invoked when HTTP headers have been encoded in preparation to being
transmitted to the user-agent.
|
protected void |
SpdyHandlerFilter.onHttpHeadersParsed(HttpHeader httpHeader,
FilterChainContext ctx)
Invoked when all headers of the packet have been parsed.
|
protected boolean |
SpdyHandlerFilter.onHttpPacketParsed(HttpHeader httpHeader,
FilterChainContext ctx)
Callback method, called when
HttpPacket parsing has been completed. |
protected void |
SpdyHandlerFilter.onInitialLineEncoded(HttpHeader httpHeader,
FilterChainContext ctx)
Invoked when the intial response line has been encoded in preparation
to being transmitted to the user-agent.
|
protected void |
SpdyHandlerFilter.onInitialLineParsed(HttpHeader httpHeader,
FilterChainContext ctx)
Invoked when either the request line or status line has been parsed.
|
Copyright © 2015 Oracle Corporation. All rights reserved.