Top Description Inners Methods
org.glassfish.grizzly.http.server

public Interface HttpServerProbe

Known Direct Implementers
org.glassfish.grizzly.http.server.HttpServerProbe.Adapter
Imports
org.glassfish.grizzly.Connection

Monitoring probe providing callbacks that may be invoked by Grizzly HttpServerFilter.
Author
Alexey Stashok
Since
2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
HttpServerProbe.Adapter

HttpServerProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.

Method Summary

Modifier and TypeMethod and Description
public void
onBeforeServiceEvent(HttpServerFilter
HttpServerFilter, the event belongs to.
filter
,
Connection<L>
Connection, the event belongs to.
connection
,
Request
received Request.
request
,
HttpHandler
HttpHandler to be invoked.
httpHandler
)

Method will be called, before invoking HttpHandler#service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response).

public void
onRequestCancelEvent(HttpServerFilter
HttpServerFilter, the event belongs to.
filter
,
Connection<L>
Connection, the event belongs to.
connection
,
Request request)

Method will be called, when Request processing is cancelled after suspend.

public void
onRequestCompleteEvent(HttpServerFilter
HttpServerFilter, the event belongs to.
filter
,
Connection<L>
Connection, the event belongs to.
connection
,
Response
sent Response.
response
)

Method will be called, when Request processing will be completed.

public void
onRequestReceiveEvent(HttpServerFilter
HttpServerFilter, the event belongs to.
filter
,
Connection<L>
Connection, the event belongs to.
connection
,
Request
received Request.
request
)

Method will be called, when new Request will come.

public void
onRequestResumeEvent(HttpServerFilter
HttpServerFilter, the event belongs to.
filter
,
Connection<L>
Connection, the event belongs to.
connection
,
Request request)

Method will be called, when Request processing is resumed.

public void
onRequestSuspendEvent(HttpServerFilter
HttpServerFilter, the event belongs to.
filter
,
Connection<L>
Connection, the event belongs to.
connection
,
Request request)

Method will be called, when Request processing is suspended.

public void
onRequestTimeoutEvent(HttpServerFilter
HttpServerFilter, the event belongs to.
filter
,
Connection<L>
Connection, the event belongs to.
connection
,
Request request)

Method will be called, when Request processing is timeout after suspend.

Method Detail

onBeforeServiceEventback to summary
public void onBeforeServiceEvent(HttpServerFilter filter, Connection<L> 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).

Parameters
filter:HttpServerFilter

HttpServerFilter, the event belongs to.

connection:Connection<L>

Connection, the event belongs to.

request:Request

received Request.

httpHandler:HttpHandler

HttpHandler to be invoked.

onRequestCancelEventback to summary
public void onRequestCancelEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Method will be called, when Request processing is cancelled after suspend.

Parameters
filter:HttpServerFilter

HttpServerFilter, the event belongs to.

connection:Connection<L>

Connection, the event belongs to.

request:Request

Request.

onRequestCompleteEventback to summary
public void onRequestCompleteEvent(HttpServerFilter filter, Connection<L> connection, Response response)

Method will be called, when Request processing will be completed.

Parameters
filter:HttpServerFilter

HttpServerFilter, the event belongs to.

connection:Connection<L>

Connection, the event belongs to.

response:Response

sent Response.

onRequestReceiveEventback to summary
public void onRequestReceiveEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Method will be called, when new Request will come.

Parameters
filter:HttpServerFilter

HttpServerFilter, the event belongs to.

connection:Connection<L>

Connection, the event belongs to.

request:Request

received Request.

onRequestResumeEventback to summary
public void onRequestResumeEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Method will be called, when Request processing is resumed.

Parameters
filter:HttpServerFilter

HttpServerFilter, the event belongs to.

connection:Connection<L>

Connection, the event belongs to.

request:Request

Request.

onRequestSuspendEventback to summary
public void onRequestSuspendEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Method will be called, when Request processing is suspended.

Parameters
filter:HttpServerFilter

HttpServerFilter, the event belongs to.

connection:Connection<L>

Connection, the event belongs to.

request:Request

Request.

onRequestTimeoutEventback to summary
public void onRequestTimeoutEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Method will be called, when Request processing is timeout after suspend.

Parameters
filter:HttpServerFilter

HttpServerFilter, the event belongs to.

connection:Connection<L>

Connection, the event belongs to.

request:Request

Request.

org.glassfish.grizzly.http.server back to summary

public Class HttpServerProbe.Adapter

extends Object
implements HttpServerProbe
Class Inheritance
All Implemented Interfaces
org.glassfish.grizzly.http.server.HttpServerProbe
Known Direct Subclasses
org.glassfish.grizzly.http.server.accesslog.AccessLogProbe
Annotations
@SuppressWarnings:UnusedDeclaration

HttpServerProbe adapter that provides no-op implementations for all interface methods allowing easy extension by the developer.
Since
2.1.9

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
onRequestCancelEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCancelEvent.

Method will be called, when Request processing is cancelled after suspend.

public void
onRequestCompleteEvent(HttpServerFilter filter, Connection<L> connection, Response response)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCompleteEvent.

Method will be called, when Request processing will be completed.

public void
onRequestReceiveEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestReceiveEvent.

Method will be called, when new Request will come.

public void
onRequestResumeEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestResumeEvent.

Method will be called, when Request processing is resumed.

public void
onRequestSuspendEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestSuspendEvent.

Method will be called, when Request processing is suspended.

public void
onRequestTimeoutEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestTimeoutEvent.

Method will be called, when Request processing is timeout after suspend.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Adapterback to summary
public Adapter()

Method Detail

onBeforeServiceEventback to summary
public void onBeforeServiceEvent(HttpServerFilter filter, Connection<L> connection, Request request, HttpHandler httpHandler)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onBeforeServiceEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.onBeforeServiceEvent.

Method will be called, before invoking HttpHandler#service(org.glassfish.grizzly.http.server.Request, org.glassfish.grizzly.http.server.Response).

Annotations
@Override
onRequestCancelEventback to summary
public void onRequestCancelEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCancelEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCancelEvent.

Method will be called, when Request processing is cancelled after suspend.

Annotations
@Override
onRequestCompleteEventback to summary
public void onRequestCompleteEvent(HttpServerFilter filter, Connection<L> connection, Response response)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCompleteEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.onRequestCompleteEvent.

Method will be called, when Request processing will be completed.

Annotations
@Override
onRequestReceiveEventback to summary
public void onRequestReceiveEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestReceiveEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.onRequestReceiveEvent.

Method will be called, when new Request will come.

Annotations
@Override
onRequestResumeEventback to summary
public void onRequestResumeEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestResumeEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.onRequestResumeEvent.

Method will be called, when Request processing is resumed.

Annotations
@Override
onRequestSuspendEventback to summary
public void onRequestSuspendEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestSuspendEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.onRequestSuspendEvent.

Method will be called, when Request processing is suspended.

Annotations
@Override
onRequestTimeoutEventback to summary
public void onRequestTimeoutEvent(HttpServerFilter filter, Connection<L> connection, Request request)

Implements org.glassfish.grizzly.http.server.HttpServerProbe.onRequestTimeoutEvent.

Doc from org.glassfish.grizzly.http.server.HttpServerProbe.onRequestTimeoutEvent.

Method will be called, when Request processing is timeout after suspend.

Annotations
@Override