public class BroadleafPageController extends BroadleafAbstractController implements org.springframework.web.servlet.mvc.Controller, TemplateTypeAware
| Modifier and Type | Field and Description |
|---|---|
protected DeepLinkService<PageDTO> |
deepLinkService |
protected static String |
MODEL_ATTRIBUTE_NAME |
protected TemplateOverrideExtensionManager |
templateOverrideManager |
| Constructor and Description |
|---|
BroadleafPageController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getExpectedTemplateName(javax.servlet.http.HttpServletRequest request)
If a custom handler is written and it knows the eventual template name, then it should return the
template name when this method is called.
|
TemplateType |
getTemplateType(javax.servlet.http.HttpServletRequest request)
If a custom handler is written and it knows the eventual template name, then it should return the
TemplateType when this method is called.
|
org.springframework.web.servlet.ModelAndView |
handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
addDeepLink, getContextPath, isAjaxRequest, jsonResponseprotected static String MODEL_ATTRIBUTE_NAME
@Autowired(required=false) @Qualifier(value="blPageDeepLinkService") protected DeepLinkService<PageDTO> deepLinkService
protected TemplateOverrideExtensionManager templateOverrideManager
public org.springframework.web.servlet.ModelAndView handleRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws Exception
handleRequest in interface org.springframework.web.servlet.mvc.ControllerExceptionpublic String getExpectedTemplateName(javax.servlet.http.HttpServletRequest request)
TemplateTypeAware#getBroadleafHandlerInternal(HttpServletRequest) and only if the Handler was able to handle the
request (e.g. it returns a non-null value from #getBroadleafHandlerInternal(HttpServletRequest).
Listed as expected because the HandlerMapping is making a call before the controller logic has
been processed. The controller may send the user somewhere else (e.g. an error page, etc.) in which
case, the expected template won't be the actual destination.getExpectedTemplateName in interface TemplateTypeAwarepublic TemplateType getTemplateType(javax.servlet.http.HttpServletRequest request)
TemplateTypeAware#getBroadleafHandlerInternal(HttpServletRequest) and only if the Handler was able to handle the
request (e.g. it returns a non-null value from #getBroadleafHandlerInternal(HttpServletRequest).getTemplateType in interface TemplateTypeAwareCopyright © 2017. All rights reserved.