@Component public class DefaultImageTransformationProcessor extends Object implements ImageTransformationProcessor, ImageTransformationContextFactory
| Constructor and Description |
|---|
DefaultImageTransformationProcessor() |
| Modifier and Type | Method and Description |
|---|---|
ImageTransformationContext |
createContext(String pathInfo)
Create image transformation context from path info.
|
protected ImageTransformationUriParser |
getParser() |
TransformedImageResponse |
processTransformation(String pathInfo)
Process the image transformation as per the request fragments.
|
protected void |
setContentTypeAcquirer(ContentTypeAcquirer contentTypeAcquirer) |
protected void |
setImageFactory(ImageFactory imageFactory) |
protected void |
setParser(ImageTransformationUriParser parser) |
protected void |
setPassThroughTransformer(com.sdl.context.image.transformers.PassThroughTransformer passThroughTransformer) |
public ImageTransformationContext createContext(String pathInfo) throws UriParsingException
createContext in interface ImageTransformationContextFactorypathInfo - URI path infoUriParsingExceptionpublic TransformedImageResponse processTransformation(String pathInfo) throws TransformationException
processTransformation in interface TransformationProcessor<TransformedImageResponse>pathInfo - the decoded URLTransformationExceptionprotected void setParser(ImageTransformationUriParser parser)
protected ImageTransformationUriParser getParser()
protected void setImageFactory(ImageFactory imageFactory)
protected void setContentTypeAcquirer(ContentTypeAcquirer contentTypeAcquirer)
protected void setPassThroughTransformer(com.sdl.context.image.transformers.PassThroughTransformer passThroughTransformer)
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries