Top Description Constructors Methods
org.glassfish.grizzly.http

pack-priv final Class HttpProbeNotifier

extends Object
Class Inheritance
Imports
org.glassfish.grizzly.Buffer, .Connection

Utility class, which has notification methods for different HttpProbe events.
Author
Alexey Stashok

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static void
notifyContentChunkParse(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpContent
HTTP HttpContents been parsed.
content
)

Notify registered HttpProbes about the "content chunk parsed" event.

pack-priv static void
notifyContentChunkSerialize(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpContent
HTTP HttpContents to be serialized.
content
)

Notify registered HttpProbes about the "content chunk serialize" event.

pack-priv static void
notifyContentEncodingParse(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
final Buffer
Buffer to be parsed/decoded.
buffer
,
final ContentEncoding
ContentEncoding to be applied for parsing.
contentEncoding
)

Notify registered HttpProbes about the "content encoding parse" event.

pack-priv static void
notifyContentEncodingParseResult(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
final Buffer
the result of the decoding process.
result
,
final ContentEncoding
the ContentEncoding which was applied.
contentEncoding
)

Notify registered HttpProbes about the result of the "content encoding decode" event.

pack-priv static void
notifyContentEncodingSerialize(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
final Buffer
Buffer to be serialized/encoded.
buffer
,
final ContentEncoding
ContentEncoding to be applied for serializing.
contentEncoding
)

Notify registered HttpProbes about the "content encoding serialize" event.

pack-priv static void
notifyContentEncodingSerializeResult(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
final Buffer
the result of the encoding process.
result
,
final ContentEncoding
the ContentEncoding which was applied.
contentEncoding
)

Notify registered HttpProbes about the result of the "content encoding serialize" event.

pack-priv static void
notifyDataReceived(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final Buffer buffer)

Notify registered HttpProbes about the "data received" event.

pack-priv static void
notifyDataSent(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final Buffer buffer)

Notify registered HttpProbes about the "data sent" event.

pack-priv static void
notifyHeaderParse(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpHeader
HTTP HttpHeaders been parsed.
header
,
final int
the size of the parsed header buffer.
size
)

Notify registered HttpProbes about the "header parsed" event.

pack-priv static void
notifyHeaderSerialize(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpHeader
HTTP HttpHeaders been serialized.
header
,
final Buffer
the serialized header Buffer.
buffer
)

Notify registered HttpProbes about the "header serialized" event.

pack-priv static void
notifyProbesError(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpPacket
the HttpPacket event occurred on.
httpPacket
,
Throwable error)

Notify registered HttpProbes about the error.

pack-priv static void
notifyTransferEncodingParse(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
final Buffer
Buffer to be parsed/decoded.
buffer
,
final TransferEncoding
TransferEncoding to be applied for parsing.
transferEncoding
)

Notify registered HttpProbes about the "transfer encoding parse" event.

pack-priv static void
notifyTransferEncodingSerialize(final HttpCodecFilter
the HttpCodecFilter event occurred on.
httpFilter
,
final Connection<L>
the Connection event occurred on.
connection
,
final HttpHeader
HTTP HttpHeader, the event belongs to.
header
,
final Buffer
Buffer to be serialized/encoded.
buffer
,
final TransferEncoding
TransferEncoding to be applied for serializing.
transferEncoding
)

Notify registered HttpProbes about the "transfer encoding serialize" event.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

HttpProbeNotifierback to summary
pack-priv HttpProbeNotifier()

Method Detail

notifyContentChunkParseback to summary
pack-priv static void notifyContentChunkParse(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpContent content)

Notify registered HttpProbes about the "content chunk parsed" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

content:HttpContent

HTTP HttpContents been parsed.

notifyContentChunkSerializeback to summary
pack-priv static void notifyContentChunkSerialize(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpContent content)

Notify registered HttpProbes about the "content chunk serialize" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

content:HttpContent

HTTP HttpContents to be serialized.

notifyContentEncodingParseback to summary
pack-priv static void notifyContentEncodingParse(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpHeader header, final Buffer buffer, final ContentEncoding contentEncoding)

Notify registered HttpProbes about the "content encoding parse" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

buffer:Buffer

Buffer to be parsed/decoded.

contentEncoding:ContentEncoding

ContentEncoding to be applied for parsing.

notifyContentEncodingParseResultback to summary
pack-priv static void notifyContentEncodingParseResult(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpHeader header, final Buffer result, final ContentEncoding contentEncoding)

Notify registered HttpProbes about the result of the "content encoding decode" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

result:Buffer

the result of the decoding process.

contentEncoding:ContentEncoding

the ContentEncoding which was applied.

Since
2.3.3
notifyContentEncodingSerializeback to summary
pack-priv static void notifyContentEncodingSerialize(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpHeader header, final Buffer buffer, final ContentEncoding contentEncoding)

Notify registered HttpProbes about the "content encoding serialize" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

buffer:Buffer

Buffer to be serialized/encoded.

contentEncoding:ContentEncoding

ContentEncoding to be applied for serializing.

notifyContentEncodingSerializeResultback to summary
pack-priv static void notifyContentEncodingSerializeResult(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpHeader header, final Buffer result, final ContentEncoding contentEncoding)

Notify registered HttpProbes about the result of the "content encoding serialize" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

result:Buffer

the result of the encoding process.

contentEncoding:ContentEncoding

the ContentEncoding which was applied.

Since
2.3.3
notifyDataReceivedback to summary
pack-priv static void notifyDataReceived(final HttpCodecFilter httpFilter, final Connection<L> connection, final Buffer buffer)

Notify registered HttpProbes about the "data received" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

buffer:Buffer

Buffer.

notifyDataSentback to summary
pack-priv static void notifyDataSent(final HttpCodecFilter httpFilter, final Connection<L> connection, final Buffer buffer)

Notify registered HttpProbes about the "data sent" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

buffer:Buffer

Buffer.

notifyHeaderParseback to summary
pack-priv static void notifyHeaderParse(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpHeader header, final int size)

Notify registered HttpProbes about the "header parsed" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

header:HttpHeader

HTTP HttpHeaders been parsed.

size:int

the size of the parsed header buffer.

notifyHeaderSerializeback to summary
pack-priv static void notifyHeaderSerialize(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpHeader header, final Buffer buffer)

Notify registered HttpProbes about the "header serialized" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

header:HttpHeader

HTTP HttpHeaders been serialized.

buffer:Buffer

the serialized header Buffer.

notifyProbesErrorback to summary
pack-priv static void notifyProbesError(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpPacket httpPacket, Throwable error)

Notify registered HttpProbes about the error.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

httpPacket:HttpPacket

the HttpPacket event occurred on.

error:Throwable

Throwable.

notifyTransferEncodingParseback to summary
pack-priv static void notifyTransferEncodingParse(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpHeader header, final Buffer buffer, final TransferEncoding transferEncoding)

Notify registered HttpProbes about the "transfer encoding parse" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

buffer:Buffer

Buffer to be parsed/decoded.

transferEncoding:TransferEncoding

TransferEncoding to be applied for parsing.

notifyTransferEncodingSerializeback to summary
pack-priv static void notifyTransferEncodingSerialize(final HttpCodecFilter httpFilter, final Connection<L> connection, final HttpHeader header, final Buffer buffer, final TransferEncoding transferEncoding)

Notify registered HttpProbes about the "transfer encoding serialize" event.

Parameters
httpFilter:HttpCodecFilter

the HttpCodecFilter event occurred on.

connection:Connection<L>

the Connection event occurred on.

header:HttpHeader

HTTP HttpHeader, the event belongs to.

buffer:Buffer

Buffer to be serialized/encoded.

transferEncoding:TransferEncoding

TransferEncoding to be applied for serializing.