HttpInput.Interceptor, Destroyablepublic static class HttpInput.ChainedInterceptor extends java.lang.Object implements HttpInput.Interceptor, Destroyable
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.| Constructor | Description |
|---|---|
ChainedInterceptor(HttpInput.Interceptor prev,
HttpInput.Interceptor next) |
| Modifier and Type | Method | 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()
destroy in interface DestroyableCopyright © 1995–2018 Webtide. All rights reserved.