@Controller public class AbstractComponentPresentationController extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractComponentPresentationController.ResourceNotFoundException |
| Constructor and Description |
|---|
AbstractComponentPresentationController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getComponentViewPath() |
void |
setComponentViewPath(String componentViewPath) |
String |
showComponentPresentation(String componentViewName,
int componentId,
javax.servlet.http.HttpServletRequest request)
Renders the component/model, which must be put on the request using
ComponentUtils.setComponentPresentation(javax.servlet.http.HttpServletRequest, org.dd4t.contentmodel.ComponentPresentation). |
String |
showComponentPresentation(String componentViewPrefix,
String componentViewName,
int componentId,
javax.servlet.http.HttpServletRequest request)
Renders the component template response when a page render occurs, the exact mapping needs to be
determined.
|
public AbstractComponentPresentationController()
public String showComponentPresentation(@PathVariable String componentViewName, @PathVariable int componentId, javax.servlet.http.HttpServletRequest request)
ComponentUtils.setComponentPresentation(javax.servlet.http.HttpServletRequest, org.dd4t.contentmodel.ComponentPresentation).componentViewName - the viewName to be used to render this componentcomponentId - the id as an int, not a tcm uri!request - the request on which the component must be presentpublic String showComponentPresentation(@PathVariable String componentViewPrefix, @PathVariable String componentViewName, @PathVariable int componentId, javax.servlet.http.HttpServletRequest request)
componentViewPrefix - the prefix to use for the viewcomponentViewName - the viewName to be used to render this componentcomponentId - the id as an int, not a tcm uri!request - the request on which the component must be presentpublic String getComponentViewPath()
public void setComponentViewPath(String componentViewPath)
componentViewPath - , sets the component view path relative to the view resolver pathCopyright © 2018. All rights reserved.