public static interface HttpInput.Interceptor
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)
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.
Copyright © 1995–2018 Webtide. All rights reserved.