@UsesMappedConfiguration(value=ResourceMinimizer.class) public interface ResourceMinimizer
The service configuration maps a MIME content type (e.g., "text/javascript") to an appropriate implementation of this
interface. The master service has the @Primary marker interface.
| Modifier and Type | Method and Description |
|---|---|
StreamableResource |
minimize(StreamableResource resource)
Checks the content type of the resource and applies an
appropriate minimization to it if possible.
|
StreamableResource minimize(StreamableResource resource) throws IOException
resource - to minimizeIOException${project.version} - Copyright © 2003-2014 The Apache Software Foundation.