org.glassfish.grizzly.http.server
Class HttpServerProbe.Adapter

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

public static class HttpServerProbe.Adapter
extends Object
implements HttpServerProbe

HttpServerProbe 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.server.HttpServerProbe
HttpServerProbe.Adapter
 
Constructor Summary
HttpServerProbe.Adapter()
           
 
Method Summary
 void onRequestCancelEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when Request processing is cancelled after suspend.
 void onRequestCompleteEvent(HttpServerFilter filter, Connection connection, Response response)
          Method will be called, when Request processing will be completed.
 void onRequestReceiveEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when new Request will come.
 void onRequestResumeEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when Request processing is resumed.
 void onRequestSuspendEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when Request processing is suspended.
 void onRequestTimeoutEvent(HttpServerFilter filter, Connection connection, Request request)
          Method will be called, when Request processing is timeout after suspend.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpServerProbe.Adapter

public HttpServerProbe.Adapter()
Method Detail

onRequestReceiveEvent

public void onRequestReceiveEvent(HttpServerFilter filter,
                                  Connection connection,
                                  Request request)
Method will be called, when new Request will come.

Specified by:
onRequestReceiveEvent in interface HttpServerProbe
Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - received Request.

onRequestCompleteEvent

public void onRequestCompleteEvent(HttpServerFilter filter,
                                   Connection connection,
                                   Response response)
Method will be called, when Request processing will be completed.

Specified by:
onRequestCompleteEvent in interface HttpServerProbe
Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
response - sent Response.

onRequestSuspendEvent

public void onRequestSuspendEvent(HttpServerFilter filter,
                                  Connection connection,
                                  Request request)
Method will be called, when Request processing is suspended.

Specified by:
onRequestSuspendEvent in interface HttpServerProbe
Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - Request.

onRequestResumeEvent

public void onRequestResumeEvent(HttpServerFilter filter,
                                 Connection connection,
                                 Request request)
Method will be called, when Request processing is resumed.

Specified by:
onRequestResumeEvent in interface HttpServerProbe
Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - Request.

onRequestTimeoutEvent

public void onRequestTimeoutEvent(HttpServerFilter filter,
                                  Connection connection,
                                  Request request)
Method will be called, when Request processing is timeout after suspend.

Specified by:
onRequestTimeoutEvent in interface HttpServerProbe
Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - Request.

onRequestCancelEvent

public void onRequestCancelEvent(HttpServerFilter filter,
                                 Connection connection,
                                 Request request)
Method will be called, when Request processing is cancelled after suspend.

Specified by:
onRequestCancelEvent in interface HttpServerProbe
Parameters:
filter - HttpServerFilter, the event belongs to.
connection - Connection, the event belongs to.
request - Request.


Copyright © 2012 Oracle Corporation. All Rights Reserved.