public class SizeHandler extends java.lang.Object implements TransformationHandler
Constructor and Description |
---|
SizeHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
applies(java.lang.String command)
Returns true if the transformation handler should execute for the specified
command.
|
void |
handle(net.coobird.thumbnailator.Thumbnails.Builder<? extends java.io.InputStream> builder,
java.lang.String cmd)
Handles the transformation of the thumbnail using the command values from the
suffix segment.
|
public boolean applies(java.lang.String command)
TransformationHandler
applies
in interface TransformationHandler
command
- the command to checkpublic void handle(net.coobird.thumbnailator.Thumbnails.Builder<? extends java.io.InputStream> builder, java.lang.String cmd) throws java.io.IOException
TransformationHandler
handle
in interface TransformationHandler
builder
- the Thumbnails builder to use / updatecmd
- the command to parse to retrieve the configuration values for
the transformationjava.io.IOException
- an exception occurs transforming the thumbnailCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.