public class PreCompressedResourceSupplier extends Object implements ResourceSupplier
This is done by checking for the existence of a pre-compressed file, and if it exists and the client supports the encoding then the resource is returned for the pre compressed file
| Constructor and Description |
|---|
PreCompressedResourceSupplier(ResourceManager resourceManager) |
| Modifier and Type | Method and Description |
|---|---|
PreCompressedResourceSupplier | addEncoding(String encoding, String extension) |
Resource | getResource(HttpServerExchange exchange, String path) |
PreCompressedResourceSupplier | removeEncoding(String encoding) |
public PreCompressedResourceSupplier(ResourceManager resourceManager)
public Resource getResource(HttpServerExchange exchange, String path) throws IOException
getResource in interface ResourceSupplierexchange - The current exchangepath - The path to resolveIOException - if an error ocured resolving the resourcepublic PreCompressedResourceSupplier addEncoding(String encoding, String extension)
public PreCompressedResourceSupplier removeEncoding(String encoding)
Copyright © 2020 JBoss by Red Hat. All rights reserved.