Package org.eclipse.jetty.server
Class HttpInput.ChainedInterceptor
java.lang.Object
org.eclipse.jetty.server.HttpInput.ChainedInterceptor
- All Implemented Interfaces:
HttpInput.Interceptor,Destroyable
- Enclosing class:
HttpInput
public static class HttpInput.ChainedInterceptor
extends Object
implements HttpInput.Interceptor, Destroyable
An
HttpInput.Interceptor that chains two other HttpInput.Interceptors together.
The HttpInput.Interceptor.readFrom(Content) calls the previous HttpInput.Interceptor's
HttpInput.Interceptor.readFrom(Content) and then passes any HttpInput.Content returned
to the next HttpInput.Interceptor.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final HttpInput.Interceptorprivate final HttpInput.Interceptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getNext()getPrev()readFrom(HttpInput.Content content)
-
Field Details
-
_prev
-
_next
-
-
Constructor Details
-
ChainedInterceptor
-
-
Method Details
-
getPrev
-
getNext
-
readFrom
- Specified by:
readFromin interfaceHttpInput.Interceptor- Parameters:
content- The content to be intercepted (may be empty or aHttpInput.SentinelContent. The content will be modified with any data the interceptor consumes, but there is no requirement that all the data is consumed by the interceptor.- Returns:
- The intercepted content or null if interception is completed for that content.
-
destroy
public void destroy()- Specified by:
destroyin interfaceDestroyable
-