org.glassfish.grizzly.http
Class HttpProbe.Adapter

java.lang.Object
  extended by org.glassfish.grizzly.http.HttpProbe.Adapter
All Implemented Interfaces:
HttpProbe
Enclosing interface:
HttpProbe

public static class HttpProbe.Adapter
extends Object
implements 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
HttpProbe.Adapter()
           
 
Method Summary
 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 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 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpProbe.Adapter

public HttpProbe.Adapter()
Method Detail

onDataReceivedEvent

public void onDataReceivedEvent(Connection connection,
                                Buffer buffer)
Method will be called, when Buffer will come for processing to the HttpCodecFilter (either request or response).

Specified by:
onDataReceivedEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
buffer - Buffer to be parsed.

onDataSentEvent

public 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.

Specified by:
onDataSentEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
buffer - serialized Buffer.

onHeaderParseEvent

public void onHeaderParseEvent(Connection connection,
                               HttpHeader header,
                               int size)
Method will be called, when HTTP message header gets parsed (either request or response).

Specified by:
onHeaderParseEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
header - parsed HttpHeader.
size - the size of the parsed header buffer.

onHeaderSerializeEvent

public void onHeaderSerializeEvent(Connection connection,
                                   HttpHeader header,
                                   Buffer buffer)
Method will be called, when HTTP message header gets serialized (either request or response).

Specified by:
onHeaderSerializeEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
header - serialized HttpHeader.
buffer - the serialized header Buffer.

onContentChunkParseEvent

public void onContentChunkParseEvent(Connection connection,
                                     HttpContent content)
Method will be called, when HTTP message content chunk gets parsed (either request or response).

Specified by:
onContentChunkParseEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
content - parsed HttpContent.

onContentChunkSerializeEvent

public void onContentChunkSerializeEvent(Connection connection,
                                         HttpContent content)
Method will be called, when HTTP message content chunk is prepared to be serialized (either request or response).

Specified by:
onContentChunkSerializeEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
content - HttpContent to be serialized.

onContentEncodingParseEvent

public 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.

Specified by:
onContentEncodingParseEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
header - HTTP HttpHeader, the event belongs to.
buffer - Buffer to be parsed/decoded.
contentEncoding - ContentEncoding to be applied.

onContentEncodingSerializeEvent

public 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.

Specified by:
onContentEncodingSerializeEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
header - HTTP HttpHeader, the event belongs to.
buffer - Buffer to be serialized/encoded.
contentEncoding - ContentEncoding to be applied.

onTransferEncodingParseEvent

public 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.

Specified by:
onTransferEncodingParseEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
header - HTTP HttpHeader, the event belongs to.
buffer - Buffer to be parsed/decoded.
transferEncoding - TransferEncoding to be applied.

onTransferEncodingSerializeEvent

public 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.

Specified by:
onTransferEncodingSerializeEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
header - HTTP HttpHeader, the event belongs to.
buffer - Buffer to be serialized/encoded.
transferEncoding - TransferEncoding to be applied.

onErrorEvent

public void onErrorEvent(Connection connection,
                         HttpPacket httpPacket,
                         Throwable error)
Method will be called, when error occurs during the HttpCodecFilter processing.

Specified by:
onErrorEvent in interface HttpProbe
Parameters:
connection - Connection, the event belongs to.
error - error


Copyright © 2012 Oracle Corporation. All Rights Reserved.