public interface ContentProvider extends Iterable<ByteBuffer>
ContentProvider provides a repeatable source of request content.
Implementations should return a new "view" over the same content every time Iterable.iterator() is invoked.
Applications should rely on utility classes such as ByteBufferContentProvider
or PathContentProvider.| Modifier and Type | Method and Description |
|---|---|
long |
getLength() |
forEach, iterator, spliteratorCopyright © 1995-2023 Mort Bay Consulting. All Rights Reserved.