Package org.craftercms.core.url.impl
Class AddContextPathUrlTransformer
java.lang.Object
org.craftercms.core.url.impl.AddContextPathUrlTransformer
- All Implemented Interfaces:
UrlTransformer
,org.springframework.beans.factory.Aware
,org.springframework.web.context.ServletContextAware
public class AddContextPathUrlTransformer
extends Object
implements UrlTransformer, org.springframework.web.context.ServletContextAware
Class description goes HERE
- Author:
- Alfonso Vásquez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setServletContext
(javax.servlet.ServletContext servletContext) transformUrl
(Context context, CachingOptions cachingOptions, String url)
-
Constructor Details
-
AddContextPathUrlTransformer
public AddContextPathUrlTransformer()
-
-
Method Details
-
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext) - Specified by:
setServletContext
in interfaceorg.springframework.web.context.ServletContextAware
-
transformUrl
public String transformUrl(Context context, CachingOptions cachingOptions, String url) throws UrlTransformationException - Specified by:
transformUrl
in interfaceUrlTransformer
- Throws:
UrlTransformationException
-