Class HttpServerProbe.Adapter
- java.lang.Object
-
- org.glassfish.grizzly.http.server.HttpServerProbe.Adapter
-
- All Implemented Interfaces:
HttpServerProbe
- Direct Known Subclasses:
AccessLogProbe
- Enclosing interface:
- HttpServerProbe
public static class HttpServerProbe.Adapter extends Object implements HttpServerProbe
HttpServerProbeadapter 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
Constructors Constructor Description Adapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonBeforeServiceEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request, HttpHandler httpHandler)Method will be called, before invokingHttpHandler.service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response).voidonRequestCancelEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, whenRequestprocessing is cancelled after suspend.voidonRequestCompleteEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Response response)Method will be called, whenRequestprocessing will be completed.voidonRequestReceiveEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, when newRequestwill come.voidonRequestResumeEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, whenRequestprocessing is resumed.voidonRequestSuspendEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, whenRequestprocessing is suspended.voidonRequestTimeoutEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)Method will be called, whenRequestprocessing is timeout after suspend.
-
-
-
Method Detail
-
onRequestReceiveEvent
public void onRequestReceiveEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, when newRequestwill come.- Specified by:
onRequestReceiveEventin interfaceHttpServerProbe- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request- receivedRequest.
-
onRequestCompleteEvent
public void onRequestCompleteEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Response response)
Method will be called, whenRequestprocessing will be completed.- Specified by:
onRequestCompleteEventin interfaceHttpServerProbe- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.response- sentResponse.
-
onRequestSuspendEvent
public void onRequestSuspendEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, whenRequestprocessing is suspended.- Specified by:
onRequestSuspendEventin interfaceHttpServerProbe- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onRequestResumeEvent
public void onRequestResumeEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, whenRequestprocessing is resumed.- Specified by:
onRequestResumeEventin interfaceHttpServerProbe- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onRequestTimeoutEvent
public void onRequestTimeoutEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Method will be called, whenRequestprocessing is timeout after suspend.- Specified by:
onRequestTimeoutEventin interfaceHttpServerProbe- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onRequestCancelEvent
public void onRequestCancelEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request)
Description copied from interface:HttpServerProbeMethod will be called, whenRequestprocessing is cancelled after suspend.- Specified by:
onRequestCancelEventin interfaceHttpServerProbe- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request-Request.
-
onBeforeServiceEvent
public void onBeforeServiceEvent(HttpServerFilter filter, org.glassfish.grizzly.Connection connection, Request request, HttpHandler httpHandler)
Method will be called, before invokingHttpHandler.service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response).- Specified by:
onBeforeServiceEventin interfaceHttpServerProbe- Parameters:
filter-HttpServerFilter, the event belongs to.connection-Connection, the event belongs to.request- receivedRequest.httpHandler-HttpHandlerto be invoked.
-
-