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 java.lang.Object implements HttpInput.Interceptor, Destroyable
AnHttpInput.Interceptor
that chains two otherHttpInput.Interceptor
s together. TheHttpInput.Interceptor.readFrom(Content)
calls the previousHttpInput.Interceptor
'sHttpInput.Interceptor.readFrom(Content)
and then passes anyHttpInput.Content
returned to the nextHttpInput.Interceptor
.
-
-
Constructor Summary
Constructors Constructor Description ChainedInterceptor(HttpInput.Interceptor prev, HttpInput.Interceptor next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
HttpInput.Interceptor
getNext()
HttpInput.Interceptor
getPrev()
HttpInput.Content
readFrom(HttpInput.Content content)
-
-
-
Constructor Detail
-
ChainedInterceptor
public ChainedInterceptor(HttpInput.Interceptor prev, HttpInput.Interceptor next)
-
-
Method Detail
-
getPrev
public HttpInput.Interceptor getPrev()
-
getNext
public HttpInput.Interceptor getNext()
-
readFrom
public HttpInput.Content readFrom(HttpInput.Content content)
- Specified by:
readFrom
in 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:
destroy
in interfaceDestroyable
-
-