| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Long | |
| private Date | |
| private final String | |
| private final URL |
| 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 | |
| private void | |
| public void | serve(Sender
The sender to use. sender, HttpServerExchange The exchange exchange, IoCallback completionCallback)Implements io. Serve the resource, and call the provided callback when complete. |
| public void | serveImpl(final Sender sender, final HttpServerExchange exchange, final long start, final long end, final boolean range, final IoCallback completionCallback)
|
| public void | serveRange(Sender
The sender to use. sender, HttpServerExchange The exchange exchange, long start, long end, IoCallback completionCallback)Implements io. Serve the resource, and call the provided callback when complete. |
| connectionOpened | back to summary |
|---|---|
| private boolean connectionOpened | |
| contentLength | back to summary |
|---|---|
| private Long contentLength | |
| lastModified | back to summary |
|---|---|
| private Date lastModified | |
| path | back to summary |
|---|---|
| private final String path | |
| url | back to summary |
|---|---|
| private final URL url | |
| URLResource | back to summary |
|---|---|
| public URLResource(final URL url, URLConnection connection, String path)
Deprecated
| |
| URLResource | back to summary |
|---|---|
| public URLResource(final URL url, 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.
| |
| openConnection | back to summary |
|---|---|
| private void openConnection() | |
| serve | back to summary |
|---|---|
| public void serve(Sender sender, HttpServerExchange exchange, IoCallback completionCallback) Implements io. Doc from io. Serve the resource, and call the provided callback when complete.
| |
| serveImpl | back to summary |
|---|---|
| public void serveImpl(final Sender sender, final HttpServerExchange exchange, final long start, final long end, final boolean range, final IoCallback completionCallback) | |
| serveRange | back to summary |
|---|---|
| public void serveRange(Sender sender, HttpServerExchange exchange, long start, long end, IoCallback completionCallback) Implements io. Doc from io. Serve the resource, and call the provided callback when complete.
| |