public class ItemUrlTransformingProcessor extends Object implements ItemProcessor
ItemProcessor that takes the item url, transforms it by calling
the transformation engine, and places the transformed url in the properties.| Modifier and Type | Field and Description |
|---|---|
protected String |
transformedUrlPropName |
protected String |
transformerName |
protected UrlTransformationEngine |
urlTransformationEngine |
| Constructor and Description |
|---|
ItemUrlTransformingProcessor() |
| Modifier and Type | Method and Description |
|---|---|
Item |
process(Context context,
CachingOptions cachingOptions,
Item item)
Processes an
Item. |
void |
setTransformedUrlPropName(String transformedUrlPropName) |
void |
setTransformerName(String transformerName) |
void |
setUrlTransformationEngine(UrlTransformationEngine urlTransformationEngine) |
String |
toString() |
protected String transformedUrlPropName
protected String transformerName
protected UrlTransformationEngine urlTransformationEngine
public void setTransformedUrlPropName(String transformedUrlPropName)
public void setTransformerName(String transformerName)
public void setUrlTransformationEngine(UrlTransformationEngine urlTransformationEngine)
public Item process(Context context, CachingOptions cachingOptions, Item item) throws ItemProcessingException
ItemProcessorItem.process in interface ItemProcessorcontext - the current contextcachingOptions - caching options in case you need access to itemsitem - the item to processItemProcessingException - if an error occurred while processing the itemCopyright © 2018 CrafterCMS. All rights reserved.