public static class HttpInput.ChainedInterceptor extends java.lang.Object implements HttpInput.Interceptor
HttpInput.Interceptor that chains two other HttpInput.Interceptors together.
The #readFrom(Content) calls the previous HttpInput.Interceptor's
#readFrom(Content) and then passes any HttpInput.Content returned
to the next HttpInput.Interceptor.| Constructor and Description |
|---|
ChainedInterceptor(HttpInput.Interceptor prev,
HttpInput.Interceptor next) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
HttpInput.Interceptor |
getNext() |
HttpInput.Interceptor |
getPrev() |
HttpInput.Content |
readFrom(HttpInput.Content content) |
public ChainedInterceptor(HttpInput.Interceptor prev, HttpInput.Interceptor next)
public HttpInput.Interceptor getPrev()
public HttpInput.Interceptor getNext()
public HttpInput.Content readFrom(HttpInput.Content content)
readFrom in interface HttpInput.Interceptorcontent - The content to be intercepted (may be empty or a HttpInput.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.public void destroy()