Package net.officefloor.web.resource.spi
Interface ResourceTransformer
-
public interface ResourceTransformer
Transforms resource instances.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
transform(ResourceTransformerContext context)
Transforms the resource atPath
to another resource at the returnPath
.
-
-
-
Method Detail
-
transform
void transform(ResourceTransformerContext context) throws java.io.IOException
Transforms the resource at
Path
to 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.
-
-