public class ContentEncodedResourceManager extends Object
Constructor and Description |
---|
ContentEncodedResourceManager(Path encodedResourcesRoot, CachingResourceManager encodedResourceManager, ContentEncodingRepository contentEncodingRepository, int minResourceSize, int maxResourceSize, Predicate encodingAllowed) |
Modifier and Type | Method and Description |
---|---|
ContentEncodedResource | getResource(Resource resource, HttpServerExchange exchange) Gets a pre-encoded resource. |
public ContentEncodedResourceManager(Path encodedResourcesRoot, CachingResourceManager encodedResourceManager, ContentEncodingRepository contentEncodingRepository, int minResourceSize, int maxResourceSize, Predicate encodingAllowed)
public ContentEncodedResource getResource(Resource resource, HttpServerExchange exchange) throws IOException
TODO: blocking / non-blocking semantics
resource
- exchange
- IOException
Copyright © 2017 JBoss by Red Hat. All rights reserved.