Package org.apache.sling.cms.transformer
Interface TransformationHandler
-
- All Known Implementing Classes:
CropHandler,SizeHandler
public interface TransformationHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringHANDLER_RESOURCE_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetResourceType()Get the resource type associated with this handlervoidhandle(net.coobird.thumbnailator.Thumbnails.Builder<? extends InputStream> builder, org.apache.sling.api.resource.Resource config)Handles the transformation of the file using the command values from the suffix segment.
-
-
-
Field Detail
-
HANDLER_RESOURCE_TYPE
static final String HANDLER_RESOURCE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getResourceType
String getResourceType()
Get the resource type associated with this handler- Returns:
- the handler resource type
-
handle
void handle(net.coobird.thumbnailator.Thumbnails.Builder<? extends InputStream> builder, org.apache.sling.api.resource.Resource config) throws IOException
Handles the transformation of the file using the command values from the suffix segment.- Parameters:
builder- the Thumbnails builder to use / updateconfig- the configuration values for the transformation- Throws:
IOException- an exception occurs transforming the file
-
-