Class PathRequestContent

java.lang.Object
org.eclipse.jetty.client.util.AbstractRequestContent
org.eclipse.jetty.client.util.PathRequestContent
All Implemented Interfaces:
Request.Content

public class PathRequestContent extends AbstractRequestContent

A Request.Content for files using JDK 7's java.nio.file APIs.

It is possible to specify, at the constructor, a buffer size used to read content from the stream, by default 4096 bytes. If a ByteBufferPool is provided via setByteBufferPool(ByteBufferPool), the buffer will be allocated from that pool, otherwise one buffer will be allocated and used to read the file.