public class SizeHandler extends java.lang.Object implements TransformationHandler
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PN_HEIGHT |
static java.lang.String |
PN_WIDTH |
HANDLER_RESOURCE_TYPE| Constructor and Description |
|---|
SizeHandler() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getResourceType()
Get the resource type associated with this handler
|
void |
handle(net.coobird.thumbnailator.Thumbnails.Builder<? extends java.io.InputStream> builder,
org.apache.sling.api.resource.Resource config)
Handles the transformation of the file using the command values from the
suffix segment.
|
public static final java.lang.String PN_HEIGHT
public static final java.lang.String PN_WIDTH
public java.lang.String getResourceType()
TransformationHandlergetResourceType in interface TransformationHandlerpublic void handle(net.coobird.thumbnailator.Thumbnails.Builder<? extends java.io.InputStream> builder,
org.apache.sling.api.resource.Resource config)
throws java.io.IOException
TransformationHandlerhandle in interface TransformationHandlerbuilder - the Thumbnails builder to use / updateconfig - the configuration values for the transformationjava.io.IOException - an exception occurs transforming the fileCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.