Package org.craftercms.core.url.impl
Class ExtractRequestAttributesUrlTransformer
java.lang.Object
org.craftercms.core.url.impl.ExtractRequestAttributesUrlTransformer
- All Implemented Interfaces:
UrlTransformer
Extracts a request attribute from the URL, and finally removes it from the URL. E.g.: with a URI template like
/site/website/{event}/details/index.xml and a url like /site/website/1/details/index.xml, the resulting url will be
/site/website/details/index.xml, with request attribute event = 1.
- Author:
- Praveen Elineni, Alfonso Vásquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontransformUrl(Context context, CachingOptions cachingOptions, String url)
-
Constructor Details
-
ExtractRequestAttributesUrlTransformer
-
-
Method Details
-
transformUrl
public String transformUrl(Context context, CachingOptions cachingOptions, String url) throws UrlTransformationException - Specified by:
transformUrlin interfaceUrlTransformer- Throws:
UrlTransformationException
-