public class SizeHandler extends Object implements TransformationHandler
Modifier and Type | Field and Description |
---|---|
static String |
PN_HEIGHT |
static String |
PN_WIDTH |
HANDLER_RESOURCE_TYPE
Constructor and Description |
---|
SizeHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getResourceType()
Get the resource type associated with this handler
|
void |
handle(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.
|
public static final String PN_HEIGHT
public static final String PN_WIDTH
public String getResourceType()
TransformationHandler
getResourceType
in interface TransformationHandler
public void handle(net.coobird.thumbnailator.Thumbnails.Builder<? extends InputStream> builder, org.apache.sling.api.resource.Resource config) throws IOException
TransformationHandler
handle
in interface TransformationHandler
builder
- the Thumbnails builder to use / updateconfig
- the configuration values for the transformationIOException
- an exception occurs transforming the fileCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.