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.HttpServerProbe.Adapter
Constructor and Description |
---|
HttpServerProbe.Adapter() |
Modifier and Type | Method and Description |
---|---|
void |
onBeforeServiceEvent(HttpServerFilter filter,
Connection connection,
Request request,
HttpHandler httpHandler)
Method will be called, before invoking
HttpHandler.service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response) . |
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. |
public void onRequestReceiveEvent(HttpServerFilter filter, Connection connection, Request request)
Request
will come.onRequestReceiveEvent
in interface HttpServerProbe
filter
- HttpServerFilter
, the event belongs to.connection
- Connection
, the event belongs to.request
- received Request
.public void onRequestCompleteEvent(HttpServerFilter filter, Connection connection, Response response)
Request
processing will be completed.onRequestCompleteEvent
in interface HttpServerProbe
filter
- HttpServerFilter
, the event belongs to.connection
- Connection
, the event belongs to.response
- sent Response
.public void onRequestSuspendEvent(HttpServerFilter filter, Connection connection, Request request)
Request
processing is suspended.onRequestSuspendEvent
in interface HttpServerProbe
filter
- HttpServerFilter
, the event belongs to.connection
- Connection
, the event belongs to.request
- Request
.public void onRequestResumeEvent(HttpServerFilter filter, Connection connection, Request request)
Request
processing is resumed.onRequestResumeEvent
in interface HttpServerProbe
filter
- HttpServerFilter
, the event belongs to.connection
- Connection
, the event belongs to.request
- Request
.public void onRequestTimeoutEvent(HttpServerFilter filter, Connection connection, Request request)
Request
processing is timeout
after suspend.onRequestTimeoutEvent
in interface HttpServerProbe
filter
- HttpServerFilter
, the event belongs to.connection
- Connection
, the event belongs to.request
- Request
.public void onRequestCancelEvent(HttpServerFilter filter, Connection connection, Request request)
HttpServerProbe
Request
processing is cancelled
after suspend.onRequestCancelEvent
in interface HttpServerProbe
filter
- HttpServerFilter
, the event belongs to.connection
- Connection
, the event belongs to.request
- Request
.public void onBeforeServiceEvent(HttpServerFilter filter, Connection connection, Request request, HttpHandler httpHandler)
HttpHandler.service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response)
.onBeforeServiceEvent
in interface HttpServerProbe
filter
- HttpServerFilter
, the event belongs to.connection
- Connection
, the event belongs to.request
- received Request
.httpHandler
- HttpHandler
to be invoked.Copyright © 2015 Oracle Corporation. All Rights Reserved.