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, spliterator
Copyright © 1995-2019 Mort Bay Consulting. All Rights Reserved.