public interface WebResourceResolver
ResourceRequest
in ResourceInfo
and reverse resolve resource paths (i.e. a classpath resource)
in a corresponding URL.Modifier and Type | Method and Description |
---|---|
boolean |
isCompressible(ResourceInfo resourceInfo)
Check if a resource can be compressed with gzip.
|
ResourceInfo |
resolveResourceInfo(ResourceRequest resourceRequest)
Resolve a resource request (originating from HTTP) in a resource info object denoting the resource to serve.
|
URI |
resolveURI(String resourcePath)
Reverse resolve a resource path (like a classpath resource path) into a Web-accessible URL if possible.
|
ResourceInfo resolveResourceInfo(ResourceRequest resourceRequest)
resourceRequest
- the request.ResourceInfo
object denoting the resource to serve.URI resolveURI(String resourcePath)
resourcePath
- the resource path.boolean isCompressible(ResourceInfo resourceInfo)
resourceInfo
- the resource to check.Copyright © 2013-2018–2019 SeedStack. All rights reserved.