public class BroadleafSkuController extends BroadleafAbstractController implements org.springframework.web.servlet.mvc.Controller, TemplateTypeAware
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ALL_SKUS_ATTRIBUTE_NAME |
protected DeepLinkService<Sku> |
deepLinkService |
protected String |
defaultSkuView |
protected static String |
MODEL_ATTRIBUTE_NAME |
| Constructor and Description |
|---|
BroadleafSkuController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultSkuView() |
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) |
void |
setDefaultSkuView(String defaultSkuView) |
addDeepLink, getContextPath, isAjaxRequest, jsonResponseprotected String defaultSkuView
protected static String MODEL_ATTRIBUTE_NAME
protected static String ALL_SKUS_ATTRIBUTE_NAME
@Autowired(required=false) @Qualifier(value="blSkuDeepLinkService") protected DeepLinkService<Sku> deepLinkService
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 getDefaultSkuView()
public void setDefaultSkuView(String defaultSkuView)
public 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 © 2015. All rights reserved.