- Enclosing class:
@Deprecated(since="2021-05-27") public static interface HttpInput.InterceptorDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.An interceptor for HTTP Request input.
Unlike InputStream wrappers that can be applied by filters, an interceptor is entirely transparent and works with async IO APIs.
An Interceptor may consume data from the passed content and the interceptor will continue to be called for the same content until the interceptor returns null or an empty content. Thus even if the passed content is completely consumed the interceptor will be called with the same content until it can no longer produce more content.
HttpInput.Content readFrom(HttpInput.Content content)Deprecated.
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.
- The intercepted content or null if interception is completed for that content.