public interface HttpProbe
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpProbe.Adapter
HttpProbe adapter that provides no-op implementations for
all interface methods allowing easy extension by the developer. |
| Modifier and Type | Method and Description |
|---|---|
void |
onContentChunkParseEvent(Connection connection,
HttpContent content)
Method will be called, when HTTP message content chunk gets parsed
(either request or response).
|
void |
onContentChunkSerializeEvent(Connection connection,
HttpContent content)
Method will be called, when HTTP message content chunk is prepared to be
serialized (either request or response).
|
void |
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 |
onContentEncodingParseResultEvent(Connection connection,
HttpHeader header,
Buffer result,
ContentEncoding contentEncoding)
This method will be called after the
ContentEncoding has been
applied. |
void |
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 |
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 |
onDataReceivedEvent(Connection connection,
Buffer buffer)
Method will be called, when
Buffer will come for processing to
the HttpCodecFilter (either request or response). |
void |
onDataSentEvent(Connection connection,
Buffer buffer)
Method will be called, when
Buffer, produced by the
HttpCodecFilter will be ready to go to the next
Filter in the chain and finally
written on wire. |
void |
onErrorEvent(Connection connection,
HttpPacket httpPacket,
Throwable error)
Method will be called, when error occurs during the
HttpCodecFilter processing. |
void |
onHeaderParseEvent(Connection connection,
HttpHeader header,
int size)
Method will be called, when HTTP message header gets parsed
(either request or response).
|
void |
onHeaderSerializeEvent(Connection connection,
HttpHeader header,
Buffer buffer)
Method will be called, when HTTP message header gets serialized
(either request or response).
|
void |
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 |
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 onDataReceivedEvent(Connection connection, Buffer buffer)
Buffer will come for processing to
the HttpCodecFilter (either request or response).connection - Connection, the event belongs to.buffer - Buffer to be parsed.void onDataSentEvent(Connection connection, Buffer buffer)
Buffer, produced by the
HttpCodecFilter will be ready to go to the next
Filter in the chain and finally
written on wire.connection - Connection, the event belongs to.buffer - serialized Buffer.void onHeaderParseEvent(Connection connection, HttpHeader header, int size)
connection - Connection, the event belongs to.header - parsed HttpHeader.size - the size of the parsed header buffer.void onHeaderSerializeEvent(Connection connection, HttpHeader header, Buffer buffer)
connection - Connection, the event belongs to.header - serialized HttpHeader.buffer - the serialized header Buffer.void onContentChunkParseEvent(Connection connection, HttpContent content)
connection - Connection, the event belongs to.content - parsed HttpContent.void onContentChunkSerializeEvent(Connection connection, HttpContent content)
connection - Connection, the event belongs to.content - HttpContent to be serialized.void onContentEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)
ContentEncoding will be applied
during the parsing/decoding of the certain HTTP message content chunk.connection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.buffer - Buffer to be parsed/decoded.contentEncoding - ContentEncoding to be applied.void onContentEncodingParseResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)
ContentEncoding has been
applied.connection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.result - the result of the decode operation.contentEncoding - the ContentEncoding that was applied.void onContentEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)
ContentEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk.connection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.buffer - Buffer to be serialized/encoded.contentEncoding - ContentEncoding to be applied.void onContentEncodingSerializeResultEvent(Connection connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)
ContentEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk.connection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.result - The result of the encoding processes.contentEncoding - ContentEncoding to be applied.void onTransferEncodingParseEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)
TransferEncoding will be applied
during the parsing/decoding of the certain HTTP message content chunk.connection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.buffer - Buffer to be parsed/decoded.transferEncoding - TransferEncoding to be applied.void onTransferEncodingSerializeEvent(Connection connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)
TransferEncoding will be applied
during the serialization/encoding of the certain HTTP message content chunk.connection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.buffer - Buffer to be serialized/encoded.transferEncoding - TransferEncoding to be applied.void onErrorEvent(Connection connection, HttpPacket httpPacket, Throwable error)
HttpCodecFilter processing.connection - Connection, the event belongs to.connection - HttpPacket, the event belongs to.error - errorCopyright © 2014 Oracle Corporation. All Rights Reserved.