|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@UsesMappedConfiguration(value=ResourceMinimizer.class) public interface ResourceMinimizer
Certain kinds of resources can be minimized: this primarily refers to JavaScript and CSS, both of which contain whitespace, comments and other features that can be reduced.
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.
| Method Summary | |
|---|---|
StreamableResource |
minimize(StreamableResource resource)
Checks the content type of the resource and applies an appropriate minimization to it if possible. |
| Method Detail |
|---|
StreamableResource minimize(StreamableResource resource)
throws IOException
resource - to minimize
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||