Top Description Inners Methods
org.glassfish.grizzly.http

public Interface HttpProbe

Known Direct Implementers
org.glassfish.grizzly.http.HttpProbe.Adapter
Imports
org.glassfish.grizzly.Buffer, .Connection

Monitoring probe providing callbacks that may be invoked by Grizzly Http filters.
Author
Alexey Stashok
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
HttpProbe.Adapter

HttpProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.

Method Summary

Modifier and TypeMethod and Description
public void
onContentChunkParseEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpContent
parsed HttpContent.
content
)

Method will be called, when HTTP message content chunk gets parsed (either request or response).

public void
onContentChunkSerializeEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpContent
HttpContent to be serialized.
content
)

Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).

public void
onContentEncodingParseEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
Buffer
Buffer to be parsed/decoded.
buffer
,
ContentEncoding
ContentEncoding to be applied.
contentEncoding
)

Method will be called, when ContentEncoding will be applied during the parsing/decoding of the certain HTTP message content chunk.

public void
onContentEncodingParseResultEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
Buffer
the result of the decode operation.
result
,
ContentEncoding
the ContentEncoding that was applied.
contentEncoding
)

This method will be called after the ContentEncoding has been applied.

public void
onContentEncodingSerializeEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
Buffer
Buffer to be serialized/encoded.
buffer
,
ContentEncoding
ContentEncoding to be applied.
contentEncoding
)

/** Method will be called, when ContentEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

public void
onContentEncodingSerializeResultEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
Buffer
The result of the encoding processes.
result
,
ContentEncoding
ContentEncoding to be applied.
contentEncoding
)

Method will be called, when ContentEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

public void
onDataReceivedEvent(Connection<L>
Connection, the event belongs to.
connection
,
Buffer
Buffer to be parsed.
buffer
)

Method will be called, when Buffer will come for processing to the HttpCodecFilter (either request or response).

public void
onDataSentEvent(Connection<L>
Connection, the event belongs to.
connection
,
Buffer
serialized Buffer.
buffer
)

Method will be called, when Buffer, produced by the HttpCodecFilter will be ready to go to the next org.glassfish.grizzly.filterchain.Filter in the chain and finally written on wire.

public void
onErrorEvent(Connection<L>
connection
,
HttpPacket httpPacket, Throwable
error
error
)

Method will be called, when error occurs during the HttpCodecFilter processing.

public void
onHeaderParseEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpHeader
parsed HttpHeader.
header
,
int
the size of the parsed header buffer.
size
)

Method will be called, when HTTP message header gets parsed (either request or response).

public void
onHeaderSerializeEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpHeader
serialized HttpHeader.
header
,
Buffer
the serialized header Buffer.
buffer
)

Method will be called, when HTTP message header gets serialized (either request or response).

public void
onTransferEncodingParseEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
Buffer
Buffer to be parsed/decoded.
buffer
,
TransferEncoding
TransferEncoding to be applied.
transferEncoding
)

Method will be called, when TransferEncoding will be applied during the parsing/decoding of the certain HTTP message content chunk.

public void
onTransferEncodingSerializeEvent(Connection<L>
Connection, the event belongs to.
connection
,
HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
Buffer
Buffer to be serialized/encoded.
buffer
,
TransferEncoding
TransferEncoding to be applied.
transferEncoding
)

Method will be called, when TransferEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

Method Detail

onContentChunkParseEventback to summary
public void onContentChunkParseEvent(Connection<L> connection, HttpContent content)

Method will be called, when HTTP message content chunk gets parsed (either request or response).

Parameters
connection:Connection<L>

Connection, the event belongs to.

content:HttpContent

parsed HttpContent.

onContentChunkSerializeEventback to summary
public void onContentChunkSerializeEvent(Connection<L> connection, HttpContent content)

Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).

Parameters
connection:Connection<L>

Connection, the event belongs to.

content:HttpContent

HttpContent to be serialized.

onContentEncodingParseEventback to summary
public void onContentEncodingParseEvent(Connection<L> 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.

Parameters
connection:Connection<L>

Connection, the event belongs to.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

buffer:Buffer

Buffer to be parsed/decoded.

contentEncoding:ContentEncoding

ContentEncoding to be applied.

onContentEncodingParseResultEventback to summary
public void onContentEncodingParseResultEvent(Connection<L> connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)

This method will be called after the ContentEncoding has been applied.

Parameters
connection:Connection<L>

Connection, the event belongs to.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

result:Buffer

the result of the decode operation.

contentEncoding:ContentEncoding

the ContentEncoding that was applied.

Since
2.3.3
onContentEncodingSerializeEventback to summary
public void onContentEncodingSerializeEvent(Connection<L> 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.

Parameters
connection:Connection<L>

Connection, the event belongs to.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

buffer:Buffer

Buffer to be serialized/encoded.

contentEncoding:ContentEncoding

ContentEncoding to be applied.

onContentEncodingSerializeResultEventback to summary
public void onContentEncodingSerializeResultEvent(Connection<L> 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.

Parameters
connection:Connection<L>

Connection, the event belongs to.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

result:Buffer

The result of the encoding processes.

contentEncoding:ContentEncoding

ContentEncoding to be applied.

Since
2.3.3
onDataReceivedEventback to summary
public void onDataReceivedEvent(Connection<L> connection, Buffer buffer)

Method will be called, when Buffer will come for processing to the HttpCodecFilter (either request or response).

Parameters
connection:Connection<L>

Connection, the event belongs to.

buffer:Buffer

Buffer to be parsed.

onDataSentEventback to summary
public void onDataSentEvent(Connection<L> connection, Buffer buffer)

Method will be called, when Buffer, produced by the HttpCodecFilter will be ready to go to the next org.glassfish.grizzly.filterchain.Filter in the chain and finally written on wire.

Parameters
connection:Connection<L>

Connection, the event belongs to.

buffer:Buffer

serialized Buffer.

onErrorEventback to summary
public void onErrorEvent(Connection<L> connection, HttpPacket httpPacket, Throwable error)

Method will be called, when error occurs during the HttpCodecFilter processing.

Parameters
connection:Connection<L>

error:Throwable

error

onHeaderParseEventback to summary
public void onHeaderParseEvent(Connection<L> connection, HttpHeader header, int size)

Method will be called, when HTTP message header gets parsed (either request or response).

Parameters
connection:Connection<L>

Connection, the event belongs to.

header:HttpHeader

parsed HttpHeader.

size:int

the size of the parsed header buffer.

onHeaderSerializeEventback to summary
public void onHeaderSerializeEvent(Connection<L> connection, HttpHeader header, Buffer buffer)

Method will be called, when HTTP message header gets serialized (either request or response).

Parameters
connection:Connection<L>

Connection, the event belongs to.

header:HttpHeader

serialized HttpHeader.

buffer:Buffer

the serialized header Buffer.

onTransferEncodingParseEventback to summary
public void onTransferEncodingParseEvent(Connection<L> 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.

Parameters
connection:Connection<L>

Connection, the event belongs to.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

buffer:Buffer

Buffer to be parsed/decoded.

transferEncoding:TransferEncoding

TransferEncoding to be applied.

onTransferEncodingSerializeEventback to summary
public void onTransferEncodingSerializeEvent(Connection<L> 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.

Parameters
connection:Connection<L>

Connection, the event belongs to.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

buffer:Buffer

Buffer to be serialized/encoded.

transferEncoding:TransferEncoding

TransferEncoding to be applied.

org.glassfish.grizzly.http back to summary

public Class HttpProbe.Adapter

extends Object
implements HttpProbe
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.http.HttpProbe
Annotations
@SuppressWarnings:UnusedDeclaration

HttpProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
Since
2.1.9

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
onContentChunkParseEvent(Connection<L> connection, HttpContent content)

Implements org.glassfish.grizzly.http.HttpProbe.onContentChunkParseEvent.

Method will be called, when HTTP message content chunk gets parsed (either request or response).

public void
onContentChunkSerializeEvent(Connection<L> connection, HttpContent content)

Implements org.glassfish.grizzly.http.HttpProbe.onContentChunkSerializeEvent.

Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).

public void
onContentEncodingParseEvent(Connection<L> connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onContentEncodingParseEvent.

Method will be called, when ContentEncoding will be applied during the parsing/decoding of the certain HTTP message content chunk.

public void
onContentEncodingParseResultEvent(Connection<L> connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onContentEncodingParseResultEvent.

This method will be called after the ContentEncoding has been applied.

public void
onContentEncodingSerializeEvent(Connection<L> connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onContentEncodingSerializeEvent.

/** Method will be called, when ContentEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

public void
onContentEncodingSerializeResultEvent(Connection<L> connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onContentEncodingSerializeResultEvent.

Method will be called, when ContentEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

public void
onDataReceivedEvent(Connection<L> connection, Buffer buffer)

Implements org.glassfish.grizzly.http.HttpProbe.onDataReceivedEvent.

Method will be called, when Buffer will come for processing to the HttpCodecFilter (either request or response).

public void
onDataSentEvent(Connection<L> connection, Buffer buffer)

Implements org.glassfish.grizzly.http.HttpProbe.onDataSentEvent.

Method will be called, when Buffer, produced by the HttpCodecFilter will be ready to go to the next org.glassfish.grizzly.filterchain.Filter in the chain and finally written on wire.

public void
onErrorEvent(Connection<L> connection, HttpPacket httpPacket, Throwable error)

Implements org.glassfish.grizzly.http.HttpProbe.onErrorEvent.

Method will be called, when error occurs during the HttpCodecFilter processing.

public void
onHeaderParseEvent(Connection<L> connection, HttpHeader header, int size)

Implements org.glassfish.grizzly.http.HttpProbe.onHeaderParseEvent.

Method will be called, when HTTP message header gets parsed (either request or response).

public void
onHeaderSerializeEvent(Connection<L> connection, HttpHeader header, Buffer buffer)

Implements org.glassfish.grizzly.http.HttpProbe.onHeaderSerializeEvent.

Method will be called, when HTTP message header gets serialized (either request or response).

public void
onTransferEncodingParseEvent(Connection<L> connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onTransferEncodingParseEvent.

Method will be called, when TransferEncoding will be applied during the parsing/decoding of the certain HTTP message content chunk.

public void
onTransferEncodingSerializeEvent(Connection<L> connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onTransferEncodingSerializeEvent.

Method will be called, when TransferEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Adapterback to summary
public Adapter()

Method Detail

onContentChunkParseEventback to summary
public void onContentChunkParseEvent(Connection<L> connection, HttpContent content)

Implements org.glassfish.grizzly.http.HttpProbe.onContentChunkParseEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onContentChunkParseEvent.

Method will be called, when HTTP message content chunk gets parsed (either request or response).

Annotations
@Override
onContentChunkSerializeEventback to summary
public void onContentChunkSerializeEvent(Connection<L> connection, HttpContent content)

Implements org.glassfish.grizzly.http.HttpProbe.onContentChunkSerializeEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onContentChunkSerializeEvent.

Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).

Annotations
@Override
onContentEncodingParseEventback to summary
public void onContentEncodingParseEvent(Connection<L> connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onContentEncodingParseEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onContentEncodingParseEvent.

Method will be called, when ContentEncoding will be applied during the parsing/decoding of the certain HTTP message content chunk.

Annotations
@Override
onContentEncodingParseResultEventback to summary
public void onContentEncodingParseResultEvent(Connection<L> connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onContentEncodingParseResultEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onContentEncodingParseResultEvent.

This method will be called after the ContentEncoding has been applied.

Annotations
@Override
onContentEncodingSerializeEventback to summary
public void onContentEncodingSerializeEvent(Connection<L> connection, HttpHeader header, Buffer buffer, ContentEncoding contentEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onContentEncodingSerializeEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onContentEncodingSerializeEvent.

/** Method will be called, when ContentEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

Annotations
@Override
onContentEncodingSerializeResultEventback to summary
public void onContentEncodingSerializeResultEvent(Connection<L> connection, HttpHeader header, Buffer result, ContentEncoding contentEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onContentEncodingSerializeResultEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onContentEncodingSerializeResultEvent.

Method will be called, when ContentEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

Annotations
@Override
onDataReceivedEventback to summary
public void onDataReceivedEvent(Connection<L> connection, Buffer buffer)

Implements org.glassfish.grizzly.http.HttpProbe.onDataReceivedEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onDataReceivedEvent.

Method will be called, when Buffer will come for processing to the HttpCodecFilter (either request or response).

Annotations
@Override
onDataSentEventback to summary
public void onDataSentEvent(Connection<L> connection, Buffer buffer)

Implements org.glassfish.grizzly.http.HttpProbe.onDataSentEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onDataSentEvent.

Method will be called, when Buffer, produced by the HttpCodecFilter will be ready to go to the next org.glassfish.grizzly.filterchain.Filter in the chain and finally written on wire.

Annotations
@Override
onErrorEventback to summary
public void onErrorEvent(Connection<L> connection, HttpPacket httpPacket, Throwable error)

Implements org.glassfish.grizzly.http.HttpProbe.onErrorEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onErrorEvent.

Method will be called, when error occurs during the HttpCodecFilter processing.

Annotations
@Override
onHeaderParseEventback to summary
public void onHeaderParseEvent(Connection<L> connection, HttpHeader header, int size)

Implements org.glassfish.grizzly.http.HttpProbe.onHeaderParseEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onHeaderParseEvent.

Method will be called, when HTTP message header gets parsed (either request or response).

Annotations
@Override
onHeaderSerializeEventback to summary
public void onHeaderSerializeEvent(Connection<L> connection, HttpHeader header, Buffer buffer)

Implements org.glassfish.grizzly.http.HttpProbe.onHeaderSerializeEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onHeaderSerializeEvent.

Method will be called, when HTTP message header gets serialized (either request or response).

Annotations
@Override
onTransferEncodingParseEventback to summary
public void onTransferEncodingParseEvent(Connection<L> connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onTransferEncodingParseEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onTransferEncodingParseEvent.

Method will be called, when TransferEncoding will be applied during the parsing/decoding of the certain HTTP message content chunk.

Annotations
@Override
onTransferEncodingSerializeEventback to summary
public void onTransferEncodingSerializeEvent(Connection<L> connection, HttpHeader header, Buffer buffer, TransferEncoding transferEncoding)

Implements org.glassfish.grizzly.http.HttpProbe.onTransferEncodingSerializeEvent.

Doc from org.glassfish.grizzly.http.HttpProbe.onTransferEncodingSerializeEvent.

Method will be called, when TransferEncoding will be applied during the serialization/encoding of the certain HTTP message content chunk.

Annotations
@Override