| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpContent. | |
| private final int | |
| private static final int | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | FileMappingHttpContentFactory(HttpContent.
the wrapped factoryHttpContent. to use.Construct a |
| public | FileMappingHttpContentFactory(HttpContent.
the wrapped factory,HttpContent. to use.the minimum size of an minFileSize)HttpContent before trying to use a file mapped buffer.Construct a |
| Modifier and Type | Method and Description |
|---|---|
| public HttpContent | getContent(String
The path within the context to the resource path)Implements org. |
| _factory | back to summary |
|---|---|
| private final HttpContent. | |
| _minFileSize | back to summary |
|---|---|
| private final int _minFileSize | |
| DEFAULT_MIN_FILE_SIZE | back to summary |
|---|---|
| private static final int DEFAULT_MIN_FILE_SIZE | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| FileMappingHttpContentFactory | back to summary |
|---|---|
| public FileMappingHttpContentFactory(HttpContent. Construct a
| |
| FileMappingHttpContentFactory | back to summary |
|---|---|
| public FileMappingHttpContentFactory(HttpContent. Construct a
| |
| getContent | back to summary |
|---|---|
| public HttpContent getContent(String path) throws IOException Implements org.
| |
| Modifier and Type | Field and Description |
|---|---|
| private volatile ByteBuffer | |
| private final HttpContent | |
| private final AutoLock | |
| private static final ByteBuffer |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | getByteBuffer()
Overrides org. Implements org. Get this HTTP content as a |
| public long | |
| private ByteBuffer |
| _buffer | back to summary |
|---|---|
| private volatile ByteBuffer _buffer | |
| _content | back to summary |
|---|---|
| private final HttpContent _content | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| SENTINEL_BUFFER | back to summary |
|---|---|
| private static final ByteBuffer SENTINEL_BUFFER | |
| FileMappedHttpContent | back to summary |
|---|---|
| public FileMappedHttpContent(HttpContent content) | |
| getByteBuffer | back to summary |
|---|---|
| public ByteBuffer getByteBuffer() Overrides org. Implements org. Doc from org. Get this HTTP content as a Each invocation returns a new
| |
| getBytesOccupied | back to summary |
|---|---|
| public long getBytesOccupied() Overrides org. Overrides default org.
| |
| getMappedByteBuffer | back to summary |
|---|---|
| private ByteBuffer getMappedByteBuffer() | |