Package org.eclipse.jetty.server
Class HttpChannelListeners
java.lang.Object
org.eclipse.jetty.server.HttpChannelListeners
- All Implemented Interfaces:
EventListener
,HttpChannel.Listener
A
HttpChannel.Listener
that holds a collection of
other HttpChannel.Listener
instances that are efficiently
invoked without iteration.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAfterDispatch
(Request request) Invoked just after the application returns from the first invocation.void
onBeforeDispatch
(Request request) Invoked just before calling the application.void
onComplete
(Request request) Invoked when the request and response processing are complete.void
onDispatchFailure
(Request request, Throwable failure) Invoked when the application threw an exception.void
onRequestBegin
(Request request) Invoked just after the HTTP request line and headers have been parsed.void
onRequestContent
(Request request, ByteBuffer content) Invoked every time a request content chunk has been parsed, just before making it available to the application.void
onRequestContentEnd
(Request request) Invoked when the end of the request content is detected.void
onRequestEnd
(Request request) Invoked when the request has been fully parsed.void
onRequestFailure
(Request request, Throwable failure) Invoked when the request processing failed.void
onRequestTrailers
(Request request) Invoked when the request trailers have been parsed.void
onResponseBegin
(Request request) Invoked just before the response line is written to the network.void
onResponseCommit
(Request request) Invoked just after the response is committed (that is, the response line, headers and possibly some content have been written to the network).void
onResponseContent
(Request request, ByteBuffer content) Invoked after a response content chunk has been written to the network.void
onResponseEnd
(Request request) Invoked when the response has been fully written.void
onResponseFailure
(Request request, Throwable failure) Invoked when the response processing failed.
-
Field Details
-
NOOP
-
-
Constructor Details
-
HttpChannelListeners
-
-
Method Details
-
onRequestBegin
Description copied from interface:HttpChannel.Listener
Invoked just after the HTTP request line and headers have been parsed.- Specified by:
onRequestBegin
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onBeforeDispatch
Description copied from interface:HttpChannel.Listener
Invoked just before calling the application.- Specified by:
onBeforeDispatch
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onDispatchFailure
Description copied from interface:HttpChannel.Listener
Invoked when the application threw an exception.- Specified by:
onDispatchFailure
in interfaceHttpChannel.Listener
- Parameters:
request
- the request objectfailure
- the exception thrown by the application
-
onAfterDispatch
Description copied from interface:HttpChannel.Listener
Invoked just after the application returns from the first invocation.- Specified by:
onAfterDispatch
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onRequestContent
Description copied from interface:HttpChannel.Listener
Invoked every time a request content chunk has been parsed, just before making it available to the application.- Specified by:
onRequestContent
in interfaceHttpChannel.Listener
- Parameters:
request
- the request objectcontent
- aslice
of the request content chunk
-
onRequestContentEnd
Description copied from interface:HttpChannel.Listener
Invoked when the end of the request content is detected.- Specified by:
onRequestContentEnd
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onRequestTrailers
Description copied from interface:HttpChannel.Listener
Invoked when the request trailers have been parsed.- Specified by:
onRequestTrailers
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onRequestEnd
Description copied from interface:HttpChannel.Listener
Invoked when the request has been fully parsed.- Specified by:
onRequestEnd
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onRequestFailure
Description copied from interface:HttpChannel.Listener
Invoked when the request processing failed.- Specified by:
onRequestFailure
in interfaceHttpChannel.Listener
- Parameters:
request
- the request objectfailure
- the request failure
-
onResponseBegin
Description copied from interface:HttpChannel.Listener
Invoked just before the response line is written to the network.- Specified by:
onResponseBegin
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onResponseCommit
Description copied from interface:HttpChannel.Listener
Invoked just after the response is committed (that is, the response line, headers and possibly some content have been written to the network).- Specified by:
onResponseCommit
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onResponseContent
Description copied from interface:HttpChannel.Listener
Invoked after a response content chunk has been written to the network.- Specified by:
onResponseContent
in interfaceHttpChannel.Listener
- Parameters:
request
- the request objectcontent
- aslice
of the response content chunk
-
onResponseEnd
Description copied from interface:HttpChannel.Listener
Invoked when the response has been fully written.- Specified by:
onResponseEnd
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-
onResponseFailure
Description copied from interface:HttpChannel.Listener
Invoked when the response processing failed.- Specified by:
onResponseFailure
in interfaceHttpChannel.Listener
- Parameters:
request
- the request objectfailure
- the response failure
-
onComplete
Description copied from interface:HttpChannel.Listener
Invoked when the request and response processing are complete.- Specified by:
onComplete
in interfaceHttpChannel.Listener
- Parameters:
request
- the request object
-