Package org.glassfish.grizzly.http
Class HttpProbe.Adapter
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonContentChunkParseEvent(Connection connection, HttpContent content) Method will be called, when HTTP message content chunk gets parsed (either request or response).voidonContentChunkSerializeEvent(Connection connection, HttpContent content) Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).voidonContentEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding) Method will be called, whenContentEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.voidonContentEncodingParseResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding) This method will be called after theContentEncodinghas been applied.voidonContentEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding) /** Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidonContentEncodingSerializeResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding) Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.voidonDataReceivedEvent(Connection connection, Buffer buffer) Method will be called, whenBufferwill come for processing to theHttpCodecFilter(either request or response).voidonDataSentEvent(Connection connection, Buffer buffer) Method will be called, whenBuffer, produced by theHttpCodecFilterwill be ready to go to the nextFilterin the chain and finally written on wire.voidonErrorEvent(Connection connection, HttpPacket httpPacket, Throwable error) Method will be called, when error occurs during theHttpCodecFilterprocessing.voidonHeaderParseEvent(Connection connection, HttpHeader header, int size) Method will be called, when HTTP message header gets parsed (either request or response).voidonHeaderSerializeEvent(Connection connection, HttpHeader header, Buffer buffer) Method will be called, when HTTP message header gets serialized (either request or response).voidonTransferEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.voidonTransferEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
onDataReceivedEvent
Method will be called, whenBufferwill come for processing to theHttpCodecFilter(either request or response).- Specified by:
onDataReceivedEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.buffer-Bufferto be parsed.
-
onDataSentEvent
Method will be called, whenBuffer, produced by theHttpCodecFilterwill be ready to go to the nextFilterin the chain and finally written on wire.- Specified by:
onDataSentEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.buffer- serializedBuffer.
-
onHeaderParseEvent
Method will be called, when HTTP message header gets parsed (either request or response).- Specified by:
onHeaderParseEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.header- parsedHttpHeader.size- the size of the parsed header buffer.
-
onHeaderSerializeEvent
Method will be called, when HTTP message header gets serialized (either request or response).- Specified by:
onHeaderSerializeEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.header- serializedHttpHeader.buffer- the serialized headerBuffer.
-
onContentChunkParseEvent
Method will be called, when HTTP message content chunk gets parsed (either request or response).- Specified by:
onContentChunkParseEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.content- parsedHttpContent.
-
onContentChunkSerializeEvent
Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).- Specified by:
onContentChunkSerializeEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.content-HttpContentto be serialized.
-
onContentEncodingParseEvent
public void onContentEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding) Method will be called, whenContentEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.- Specified by:
onContentEncodingParseEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.header- HTTPHttpHeader, the event belongs to.buffer-Bufferto be parsed/decoded.contentEncoding-ContentEncodingto be applied.
-
onContentEncodingParseResultEvent
public void onContentEncodingParseResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding) This method will be called after theContentEncodinghas been applied.- Specified by:
onContentEncodingParseResultEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.header- HTTPHttpHeader, the event belongs to.result- the result of the decode operation.contentEncoding- theContentEncodingthat was applied.
-
onContentEncodingSerializeEvent
public void onContentEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding) /** Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.- Specified by:
onContentEncodingSerializeEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.header- HTTPHttpHeader, the event belongs to.buffer-Bufferto be serialized/encoded.contentEncoding-ContentEncodingto be applied.
-
onContentEncodingSerializeResultEvent
public void onContentEncodingSerializeResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding) Method will be called, whenContentEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.- Specified by:
onContentEncodingSerializeResultEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.header- HTTPHttpHeader, the event belongs to.result- The result of the encoding processes.contentEncoding-ContentEncodingto be applied.
-
onTransferEncodingParseEvent
public void onTransferEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncodingwill be applied during the parsing/decoding of the certain HTTP message content chunk.- Specified by:
onTransferEncodingParseEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.header- HTTPHttpHeader, the event belongs to.buffer-Bufferto be parsed/decoded.transferEncoding-TransferEncodingto be applied.
-
onTransferEncodingSerializeEvent
public void onTransferEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding) Method will be called, whenTransferEncodingwill be applied during the serialization/encoding of the certain HTTP message content chunk.- Specified by:
onTransferEncodingSerializeEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.header- HTTPHttpHeader, the event belongs to.buffer-Bufferto be serialized/encoded.transferEncoding-TransferEncodingto be applied.
-
onErrorEvent
Method will be called, when error occurs during theHttpCodecFilterprocessing.- Specified by:
onErrorEventin interfaceHttpProbe- Parameters:
connection-Connection, the event belongs to.error- error
-