| Modifier and Type | Field and Description |
|---|---|
| private final ETag | |
| private final Path | |
| private final PathResourceManager | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Long | |
| public String | getContentType(final MimeMappings mimeMappings)
Implements io. Return the resources content type. |
| public ETag | |
| public File | |
| public Path | |
| public Date | |
| public String | |
| public String | |
| public String | |
| public File | getResourceManagerRoot()
Implements io. Returns the resource manager root. |
| public Path | getResourceManagerRootPath()
Implements io. Returns the resource manager root. |
| public URL | |
| public boolean | |
| public boolean | isRangeSupported()
Implements io. It is possible that some resources managers may only support range requests on a subset of their resources, |
| public List | |
| public void | serve(final Sender
The sender to use. sender, final HttpServerExchange The exchange exchange, final IoCallback callback)Implements io. Serve the resource, and call the provided callback when complete. |
| private void | serveImpl(final Sender sender, final HttpServerExchange exchange, final long start, final long end, final IoCallback callback, final boolean range)
|
| public void | serveRange(final Sender
The sender to use. sender, final HttpServerExchange The exchange exchange, final long start, final long end, final IoCallback callback)Implements io. Serve the resource, and call the provided callback when complete. |
| eTag | back to summary |
|---|---|
| private final ETag eTag | |
| file | back to summary |
|---|---|
| private final Path file | |
| manager | back to summary |
|---|---|
| private final PathResourceManager manager | |
| path | back to summary |
|---|---|
| private final String path | |
| PathResource | back to summary |
|---|---|
| public PathResource(final Path file, final PathResourceManager manager, String path, ETag eTag) | |
| PathResource | back to summary |
|---|---|
| public PathResource(final Path file, final PathResourceManager manager, String path) | |
| getCacheKey | back to summary |
|---|---|
| public String getCacheKey() Implements io.
| |
| getContentLength | back to summary |
|---|---|
| public Long getContentLength() Implements io.
| |
| getContentType | back to summary |
|---|---|
| public String getContentType(final MimeMappings mimeMappings) Implements io. Doc from io. Return the resources content type. In most cases this will simply use the provided mime mappings, however in some cases the resource may have additional information as to the actual content type.
| |
| getETag | back to summary |
|---|---|
| public ETag getETag() Implements io.
| |
| getFile | back to summary |
|---|---|
| public File getFile() Implements io.
| |
| getFilePath | back to summary |
|---|---|
| public Path getFilePath() Implements io.
| |
| getLastModified | back to summary |
|---|---|
| public Date getLastModified() Implements io.
| |
| getLastModifiedString | back to summary |
|---|---|
| public String getLastModifiedString() Implements io.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements io.
| |
| getPath | back to summary |
|---|---|
| public String getPath() Implements io.
| |
| getResourceManagerRoot | back to summary |
|---|---|
| public File getResourceManagerRoot() Implements io. Doc from io. Returns the resource manager root. If the resource manager has multiple roots then this returns the one that is the parent of this resource. | |
| getResourceManagerRootPath | back to summary |
|---|---|
| public Path getResourceManagerRootPath() Implements io. Doc from io. Returns the resource manager root. If the resource manager has multiple roots then this returns the one that is the parent of this resource. | |
| getUrl | back to summary |
|---|---|
| public URL getUrl() Implements io.
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements io.
| |
| isRangeSupported | back to summary |
|---|---|
| public boolean isRangeSupported() Implements io. Doc from io. It is possible that some resources managers may only support range requests on a subset of their resources,
| |
| list | back to summary |
|---|---|
| public List Implements io.
| |
| serve | back to summary |
|---|---|
| public void serve(final Sender sender, final HttpServerExchange exchange, final IoCallback callback) Implements io. Doc from io. Serve the resource, and call the provided callback when complete.
| |
| serveImpl | back to summary |
|---|---|
| private void serveImpl(final Sender sender, final HttpServerExchange exchange, final long start, final long end, final IoCallback callback, final boolean range) | |
| serveRange | back to summary |
|---|---|
| public void serveRange(final Sender sender, final HttpServerExchange exchange, final long start, final long end, final IoCallback callback) Implements io. Doc from io. Serve the resource, and call the provided callback when complete.
| |