Class ContentEncodedResourceManager
java.lang.Object
io.undertow.server.handlers.encoding.ContentEncodedResourceManager
Class that provides a way of serving pre-encoded resources.
- Author:
- Stuart Douglas
-
Constructor Summary
ConstructorsConstructorDescriptionContentEncodedResourceManager
(Path encodedResourcesRoot, CachingResourceManager encodedResourceManager, ContentEncodingRepository contentEncodingRepository, int minResourceSize, int maxResourceSize, Predicate encodingAllowed) -
Method Summary
Modifier and TypeMethodDescriptiongetResource
(Resource resource, HttpServerExchange exchange) Gets a pre-encoded resource.
-
Constructor Details
-
ContentEncodedResourceManager
public ContentEncodedResourceManager(Path encodedResourcesRoot, CachingResourceManager encodedResourceManager, ContentEncodingRepository contentEncodingRepository, int minResourceSize, int maxResourceSize, Predicate encodingAllowed)
-
-
Method Details
-
getResource
public ContentEncodedResource getResource(Resource resource, HttpServerExchange exchange) throws IOException Gets a pre-encoded resource.TODO: blocking / non-blocking semantics
- Parameters:
resource
-exchange
-- Returns:
- Throws:
IOException
-