HttpProbe.Adapter| Constructor and Description |
|---|
Adapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
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, when
ContentEncoding 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 the
ContentEncoding has been applied. |
void |
onContentEncodingSerializeEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.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(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.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(org.glassfish.grizzly.Connection connection,
org.glassfish.grizzly.Buffer buffer)
Method will be called, when
Buffer will come for processing to the HttpCodecFilter (either request or
response). |
void |
onDataSentEvent(org.glassfish.grizzly.Connection connection,
org.glassfish.grizzly.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(org.glassfish.grizzly.Connection connection,
HttpPacket httpPacket,
Throwable error)
Method will be called, when error occurs during the
HttpCodecFilter 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, when
TransferEncoding 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, when
TransferEncoding will be applied during the serialization/encoding of the certain
HTTP message content chunk. |
public void onDataReceivedEvent(org.glassfish.grizzly.Connection connection,
org.glassfish.grizzly.Buffer buffer)
Buffer will come for processing to the HttpCodecFilter (either request or
response).onDataReceivedEvent in interface HttpProbeconnection - Connection, the event belongs to.buffer - Buffer to be parsed.public void onDataSentEvent(org.glassfish.grizzly.Connection connection,
org.glassfish.grizzly.Buffer buffer)
Buffer, produced by the HttpCodecFilter will be ready to go to the next
Filter in the chain and finally written on wire.onDataSentEvent in interface HttpProbeconnection - Connection, the event belongs to.buffer - serialized Buffer.public void onHeaderParseEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
int size)
onHeaderParseEvent in interface HttpProbeconnection - Connection, the event belongs to.header - parsed HttpHeader.size - the size of the parsed header buffer.public void onHeaderSerializeEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.Buffer buffer)
onHeaderSerializeEvent in interface HttpProbeconnection - Connection, the event belongs to.header - serialized HttpHeader.buffer - the serialized header Buffer.public void onContentChunkParseEvent(org.glassfish.grizzly.Connection connection,
HttpContent content)
onContentChunkParseEvent in interface HttpProbeconnection - Connection, the event belongs to.content - parsed HttpContent.public void onContentChunkSerializeEvent(org.glassfish.grizzly.Connection connection,
HttpContent content)
onContentChunkSerializeEvent in interface HttpProbeconnection - Connection, the event belongs to.content - HttpContent to be serialized.public void onContentEncodingParseEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.Buffer buffer,
ContentEncoding contentEncoding)
ContentEncoding will be applied during the parsing/decoding of the certain HTTP
message content chunk.onContentEncodingParseEvent in interface HttpProbeconnection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.buffer - Buffer to be parsed/decoded.contentEncoding - ContentEncoding to be applied.public void onContentEncodingParseResultEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.Buffer result,
ContentEncoding contentEncoding)
ContentEncoding has been applied.onContentEncodingParseResultEvent in interface HttpProbeconnection - 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.public void onContentEncodingSerializeEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.Buffer buffer,
ContentEncoding contentEncoding)
ContentEncoding will be applied during the serialization/encoding of the
certain HTTP message content chunk.onContentEncodingSerializeEvent in interface HttpProbeconnection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.buffer - Buffer to be serialized/encoded.contentEncoding - ContentEncoding to be applied.public void onContentEncodingSerializeResultEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.Buffer result,
ContentEncoding contentEncoding)
ContentEncoding will be applied during the serialization/encoding of the certain
HTTP message content chunk.onContentEncodingSerializeResultEvent in interface HttpProbeconnection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.result - The result of the encoding processes.contentEncoding - ContentEncoding to be applied.public void onTransferEncodingParseEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.Buffer buffer,
TransferEncoding transferEncoding)
TransferEncoding will be applied during the parsing/decoding of the certain HTTP
message content chunk.onTransferEncodingParseEvent in interface HttpProbeconnection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.buffer - Buffer to be parsed/decoded.transferEncoding - TransferEncoding to be applied.public void onTransferEncodingSerializeEvent(org.glassfish.grizzly.Connection connection,
HttpHeader header,
org.glassfish.grizzly.Buffer buffer,
TransferEncoding transferEncoding)
TransferEncoding will be applied during the serialization/encoding of the certain
HTTP message content chunk.onTransferEncodingSerializeEvent in interface HttpProbeconnection - Connection, the event belongs to.header - HTTP HttpHeader, the event belongs to.buffer - Buffer to be serialized/encoded.transferEncoding - TransferEncoding to be applied.public void onErrorEvent(org.glassfish.grizzly.Connection connection,
HttpPacket httpPacket,
Throwable error)
HttpCodecFilter processing.onErrorEvent in interface HttpProbeconnection - Connection, the event belongs to.error - errorCopyright © 2017–2021 Oracle Corporation. All rights reserved.