| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static record | ResourceService.
A welcome target paired with how to process it. |
| public static interface | |
| public static enum | ResourceService.
How welcome targets should be processed. |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private HttpField | |
| private HttpContent. | |
| private boolean | |
| private int | |
| private boolean | |
| private List | |
| private final List | |
| private final List | |
| private final Map | |
| private ResourceService. | |
| private ResourceService. | |
| private static final Logger | |
| private static final int | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | Returns: the cacheControl header to set on all static content.Get the cacheControl header to set on all static content.. |
| public HttpContent | |
| public int | |
| public List | getGzipEquivalentFileExtensions()
Returns: file extensions that signify that a file is gzip compressed. |
| public HttpContent. | |
| public List | getPrecompressedFormats()
Returns: Precompressed resources formats that can be used to serve compressed variant of resources. |
| private List | |
| public ResourceService. | |
| public ResourceService. | |
| protected void | handleWelcomeAction(Request request, Response response, Callback callback, ResourceService.
|
| public boolean | |
| public boolean | |
| private CompressedContentFormat | |
| public boolean | |
| private boolean | |
| private String | Returns: the matched etag, or null if no matches.the content etag to match against (can be null) contentETag, String the request etag (can be null, a single entry, or even a CSV list) requestEtag)Find a matches between a Content ETag and a Request Field ETag reference. |
| protected boolean | passConditionalHeaders(Request request, Response response, HttpContent content, Callback callback)
Returns: true if the request was processed, false otherwise. |
| private ResourceService. | |
| protected void | |
| protected void | redirectWelcome(Request
the request to redirect request, Response the response response, Callback the callback to complete callback, String the welcome target to redirect to welcomeTarget)Redirects to the given welcome target. |
| protected void | rehandleWelcome(Request
the request request, Response the response response, Callback the callback to complete callback, String the welcome target to rehandle to welcomeTarget)Rehandles the given welcome target. |
| private void | |
| private void | sendDirectory(Request request, Response response, HttpContent httpContent, Callback callback, String pathInContext)
|
| protected void | |
| protected void | sendWelcome(HttpContent content, String pathInContext, boolean endsWithSlash, Request request, Response response, Callback callback)
|
| protected void | serveWelcome(Request
the request request, Response the response response, Callback the callback to complete callback, String the welcome target to serve welcomeTarget)Serves the given welcome target. |
| public void | |
| public void | setCacheControl(String
the cacheControl header to set on all static content. cacheControl)Set the cacheControl header to set on all static content.. |
| public void | setDirAllowed(boolean
If true, directory listings are returned if no welcome target is found. Else 403 Forbidden. dirAllowed)
|
| public void | |
| public void | |
| public void | setGzipEquivalentFileExtensions(List<String>
file extensions that signify that a file is gzip compressed. Eg ".svgz" gzipEquivalentFileExtensions)Set file extensions that signify that a file is gzip compressed. |
| public void | |
| public void | setPrecompressedFormats(List<CompressedContentFormat>
The list of precompresed formats to serve in encoded format if matching resource found.
For example serve gzip encoded file if ".gz" suffixed resource is found. precompressedFormats)
|
| public void | |
| public void | |
| public String | |
| private boolean | |
| protected void | |
| protected void | |
| protected void | |
| protected void |