A Request. for files using JDK 7's java.nio.file APIs.
It is possible to specify a buffer size used to read content from the stream,
by default 4096 bytes, whether the buffer should be direct or not, and a
ByteBufferPool from which ByteBuffers will be acquired
to read from the Path.
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| contentType | back to summary |
|---|---|
| private final String contentType | |
| PathRequestContent | back to summary |
|---|---|
| public PathRequestContent(Path filePath) throws IOException | |
| PathRequestContent | back to summary |
|---|---|
| public PathRequestContent(Path filePath, int bufferSize) throws IOException | |
| PathRequestContent | back to summary |
|---|---|
| public PathRequestContent(String contentType, Path filePath) throws IOException | |
| PathRequestContent | back to summary |
|---|---|
| public PathRequestContent(String contentType, Path filePath, int bufferSize) throws IOException | |
| PathRequestContent | back to summary |
|---|---|
| public PathRequestContent(String contentType, Path filePath, ByteBufferPool bufferPool) throws IOException | |
| getContentType | back to summary |
|---|---|
| public String getContentType() Overrides default org.
| |