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.Interceptorthat chains two otherHttpInput.Interceptors together. TheHttpInput.Interceptor.readFrom(Content)calls the previousHttpInput.Interceptor'sHttpInput.Interceptor.readFrom(Content)and then passes anyHttpInput.Contentreturned 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 voiddestroy()HttpInput.InterceptorgetNext()HttpInput.InterceptorgetPrev()HttpInput.ContentreadFrom(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:
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
-
-