| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final CachedResource. | |
| private final CachingResourceManager | |
| private final boolean | |
| private final ETag | |
| private final Date | |
| private final String | |
| private final String | |
| private volatile long | |
| private final Resource |
| Access | Constructor and Description |
|---|---|
| public | CachedResource(final CachingResourceManager cachingResourceManager, final Resource underlyingResource, final String path)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| 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 void | |
| 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 completionCallback)Implements io. Serve the resource, and call the provided callback when complete. |
| 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. |
| cacheKey | back to summary |
|---|---|
| private final CachedResource. | |
| cachingResourceManager | back to summary |
|---|---|
| private final CachingResourceManager cachingResourceManager | |
| directory | back to summary |
|---|---|
| private final boolean directory | |
| eTag | back to summary |
|---|---|
| private final ETag eTag | |
| lastModifiedDate | back to summary |
|---|---|
| private final Date lastModifiedDate | |
| lastModifiedDateString | back to summary |
|---|---|
| private final String lastModifiedDateString | |
| name | back to summary |
|---|---|
| private final String name | |
| nextMaxAgeCheck | back to summary |
|---|---|
| private volatile long nextMaxAgeCheck | |
| underlyingResource | back to summary |
|---|---|
| private final Resource underlyingResource | |
| CachedResource | back to summary |
|---|---|
| public CachedResource(final CachingResourceManager cachingResourceManager, final Resource underlyingResource, final String path) | |
| checkStillValid | back to summary |
|---|---|
| public boolean checkStillValid() | |
| 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.
| |
| invalidate | back to summary |
|---|---|
| public void invalidate() | |
| 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 completionCallback) Implements io. Doc from io. Serve the resource, and call the provided callback when complete.
| |
| 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.
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final CachingResourceManager |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int |
| cacheKey | back to summary |
|---|---|
| pack-priv final String cacheKey | |
| manager | back to summary |
|---|---|
| pack-priv final CachingResourceManager manager | |
| CacheKey | back to summary |
|---|---|
| pack-priv CacheKey(CachingResourceManager manager, String cacheKey) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Field and Description |
|---|---|
| private final IoCallback | |
| private final DirectBufferCache. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | onComplete(final HttpServerExchange exchange, final Sender sender)
Implements io.
|
| public void | onException(final HttpServerExchange exchange, final Sender sender, final IOException exception)
Implements io.
|
| callback | back to summary |
|---|---|
| private final IoCallback callback | |
| entry | back to summary |
|---|---|
| private final DirectBufferCache. | |
| DereferenceCallback | back to summary |
|---|---|
| pack-priv DereferenceCallback(DirectBufferCache. | |
| onComplete | back to summary |
|---|---|
| public void onComplete(final HttpServerExchange exchange, final Sender sender) Implements io.
| |
| onException | back to summary |
|---|---|
| public void onException(final HttpServerExchange exchange, final Sender sender, final IOException exception) Implements io.
| |