Package net.officefloor.web.resource.spi
Interface ResourceTransformer
-
public interface ResourceTransformerTransforms resource instances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidtransform(ResourceTransformerContext context)Transforms the resource atPathto another resource at the returnPath.
-
-
-
Method Detail
-
transform
void transform(ResourceTransformerContext context) throws java.io.IOException
Transforms the resource at
Pathto another resource at the returnPath.Typically this is to compress the files, however available for other transforms to files (such as altering contents of files).
- Parameters:
context-ResourceTransformerContext.- Throws:
java.io.IOException- If fails to transform the resource.
-
-