Class SiteUrlController
- java.lang.Object
-
- org.craftercms.core.controller.rest.RestControllerBase
-
- org.craftercms.engine.controller.rest.SiteUrlController
-
@RestController @RequestMapping("${crafter.core.rest.base.uri}/site/url") public class SiteUrlController extends org.craftercms.core.controller.rest.RestControllerBase
REST controller to access the URL transformation service.- Author:
- joseross
-
-
Field Summary
Fields Modifier and Type Field Description static String
URL_ROOT
static String
URL_TRANSFORM
protected UrlTransformationService
urlTransformationService
-
Constructor Summary
Constructors Constructor Description SiteUrlController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUrlTransformationService(UrlTransformationService urlTransformationService)
String
transformUrl(String transformerName, String url)
-
-
-
Field Detail
-
URL_ROOT
public static final String URL_ROOT
- See Also:
- Constant Field Values
-
URL_TRANSFORM
public static final String URL_TRANSFORM
- See Also:
- Constant Field Values
-
urlTransformationService
protected UrlTransformationService urlTransformationService
-
-
Method Detail
-
setUrlTransformationService
public void setUrlTransformationService(UrlTransformationService urlTransformationService)
-
-