HttpInput.Interceptor
, org.eclipse.jetty.util.component.Destroyable
public static class HttpInput.ChainedInterceptor extends java.lang.Object implements HttpInput.Interceptor, org.eclipse.jetty.util.component.Destroyable
HttpInput.Interceptor
that chains two other HttpInput.Interceptor
s 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 | 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.Interceptor
content
- 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 org.eclipse.jetty.util.component.Destroyable
Copyright © 1995–2018 Webtide. All rights reserved.