java.lang.Object
org.glassfish.grizzly.http.HttpProbe.Adapter
- All Implemented Interfaces:
HttpProbe
- Enclosing interface:
- HttpProbe
HttpProbe
adapter that provides no-op implementations for all interface methods allowing easy extension by
the developer.- Since:
- 2.1.9
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.glassfish.grizzly.http.HttpProbe
HttpProbe.Adapter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onContentChunkParseEvent
(org.glassfish.grizzly.Connection connection, HttpContent content) Method will be called, when HTTP message content chunk gets parsed (either request or response).void
onContentChunkSerializeEvent
(org.glassfish.grizzly.Connection connection, HttpContent content) Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).void
onContentEncodingParseEvent
(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, ContentEncoding contentEncoding) Method will be called, whenContentEncoding
will be applied during the parsing/decoding of the certain HTTP message content chunk.void
onContentEncodingParseResultEvent
(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer result, ContentEncoding contentEncoding) This method will be called after theContentEncoding
has been applied.void
onContentEncodingSerializeEvent
(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, ContentEncoding contentEncoding) /** Method will be called, whenContentEncoding
will be applied during the serialization/encoding of the certain HTTP message content chunk.void
onContentEncodingSerializeResultEvent
(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer result, ContentEncoding contentEncoding) Method will be called, whenContentEncoding
will be applied during the serialization/encoding of the certain HTTP message content chunk.void
onDataReceivedEvent
(org.glassfish.grizzly.Connection connection, org.glassfish.grizzly.Buffer buffer) Method will be called, whenBuffer
will come for processing to theHttpCodecFilter
(either request or response).void
onDataSentEvent
(org.glassfish.grizzly.Connection connection, org.glassfish.grizzly.Buffer buffer) Method will be called, whenBuffer
, produced by theHttpCodecFilter
will be ready to go to the nextFilter
in the chain and finally written on wire.void
onErrorEvent
(org.glassfish.grizzly.Connection connection, HttpPacket httpPacket, Throwable error) Method will be called, when error occurs during theHttpCodecFilter
processing.void
onHeaderParseEvent
(org.glassfish.grizzly.Connection connection, HttpHeader header, int size) Method will be called, when HTTP message header gets parsed (either request or response).void
onHeaderSerializeEvent
(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer) Method will be called, when HTTP message header gets serialized (either request or response).void
onTransferEncodingParseEvent
(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncoding
will be applied during the parsing/decoding of the certain HTTP message content chunk.void
onTransferEncodingSerializeEvent
(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncoding
will be applied during the serialization/encoding of the certain HTTP message content chunk.
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
onDataReceivedEvent
public void onDataReceivedEvent(org.glassfish.grizzly.Connection connection, org.glassfish.grizzly.Buffer buffer) Method will be called, whenBuffer
will come for processing to theHttpCodecFilter
(either request or response).- Specified by:
onDataReceivedEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.buffer
-Buffer
to be parsed.
-
onDataSentEvent
public void onDataSentEvent(org.glassfish.grizzly.Connection connection, org.glassfish.grizzly.Buffer buffer) Method will be called, whenBuffer
, produced by theHttpCodecFilter
will be ready to go to the nextFilter
in the chain and finally written on wire.- Specified by:
onDataSentEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.buffer
- serializedBuffer
.
-
onHeaderParseEvent
public void onHeaderParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, int size) Method will be called, when HTTP message header gets parsed (either request or response).- Specified by:
onHeaderParseEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.header
- parsedHttpHeader
.size
- the size of the parsed header buffer.
-
onHeaderSerializeEvent
public void onHeaderSerializeEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer) Method will be called, when HTTP message header gets serialized (either request or response).- Specified by:
onHeaderSerializeEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.header
- serializedHttpHeader
.buffer
- the serialized headerBuffer
.
-
onContentChunkParseEvent
public void onContentChunkParseEvent(org.glassfish.grizzly.Connection connection, HttpContent content) Method will be called, when HTTP message content chunk gets parsed (either request or response).- Specified by:
onContentChunkParseEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.content
- parsedHttpContent
.
-
onContentChunkSerializeEvent
public void onContentChunkSerializeEvent(org.glassfish.grizzly.Connection connection, HttpContent content) Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).- Specified by:
onContentChunkSerializeEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.content
-HttpContent
to be serialized.
-
onContentEncodingParseEvent
public void onContentEncodingParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, ContentEncoding contentEncoding) Method will be called, whenContentEncoding
will be applied during the parsing/decoding of the certain HTTP message content chunk.- Specified by:
onContentEncodingParseEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.header
- HTTPHttpHeader
, the event belongs to.buffer
-Buffer
to be parsed/decoded.contentEncoding
-ContentEncoding
to be applied.
-
onContentEncodingParseResultEvent
public void onContentEncodingParseResultEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer result, ContentEncoding contentEncoding) This method will be called after theContentEncoding
has been applied.- Specified by:
onContentEncodingParseResultEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.header
- HTTPHttpHeader
, the event belongs to.result
- the result of the decode operation.contentEncoding
- theContentEncoding
that was applied.
-
onContentEncodingSerializeEvent
public void onContentEncodingSerializeEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, ContentEncoding contentEncoding) /** Method will be called, whenContentEncoding
will be applied during the serialization/encoding of the certain HTTP message content chunk.- Specified by:
onContentEncodingSerializeEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.header
- HTTPHttpHeader
, the event belongs to.buffer
-Buffer
to be serialized/encoded.contentEncoding
-ContentEncoding
to be applied.
-
onContentEncodingSerializeResultEvent
public void onContentEncodingSerializeResultEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer result, ContentEncoding contentEncoding) Method will be called, whenContentEncoding
will be applied during the serialization/encoding of the certain HTTP message content chunk.- Specified by:
onContentEncodingSerializeResultEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.header
- HTTPHttpHeader
, the event belongs to.result
- The result of the encoding processes.contentEncoding
-ContentEncoding
to be applied.
-
onTransferEncodingParseEvent
public void onTransferEncodingParseEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncoding
will be applied during the parsing/decoding of the certain HTTP message content chunk.- Specified by:
onTransferEncodingParseEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.header
- HTTPHttpHeader
, the event belongs to.buffer
-Buffer
to be parsed/decoded.transferEncoding
-TransferEncoding
to be applied.
-
onTransferEncodingSerializeEvent
public void onTransferEncodingSerializeEvent(org.glassfish.grizzly.Connection connection, HttpHeader header, org.glassfish.grizzly.Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncoding
will be applied during the serialization/encoding of the certain HTTP message content chunk.- Specified by:
onTransferEncodingSerializeEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.header
- HTTPHttpHeader
, the event belongs to.buffer
-Buffer
to be serialized/encoded.transferEncoding
-TransferEncoding
to be applied.
-
onErrorEvent
public void onErrorEvent(org.glassfish.grizzly.Connection connection, HttpPacket httpPacket, Throwable error) Method will be called, when error occurs during theHttpCodecFilter
processing.- Specified by:
onErrorEvent
in interfaceHttpProbe
- Parameters:
connection
-Connection
, the event belongs to.error
- error
-