public class BroadleafCategoryController extends BroadleafAbstractController implements org.springframework.web.servlet.mvc.Controller, TemplateTypeAware
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ACTIVE_FACETS_ATTRIBUTE_NAME |
protected static String |
ALL_PRODUCTS_ATTRIBUTE_NAME |
protected static String |
ALL_SKUS_ATTRIBUTE_NAME |
protected static String |
CATEGORY_ATTRIBUTE_NAME |
protected DeepLinkService<Category> |
deepLinkService |
protected static String |
defaultCategoryView |
protected static String |
FACETS_ATTRIBUTE_NAME |
protected SearchFacetDTOService |
facetService |
protected static String |
PRODUCT_SEARCH_RESULT_ATTRIBUTE_NAME |
protected static String |
PRODUCTS_ATTRIBUTE_NAME |
protected SearchService |
searchService |
protected static String |
SKUS_ATTRIBUTE_NAME |
protected TemplateOverrideExtensionManager |
templateOverrideManager |
| Constructor and Description |
|---|
BroadleafCategoryController() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultCategoryView() |
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.
|
protected SearchService |
getSearchService() |
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 defaultCategoryView
protected static String CATEGORY_ATTRIBUTE_NAME
protected static String PRODUCTS_ATTRIBUTE_NAME
protected static String SKUS_ATTRIBUTE_NAME
protected static String FACETS_ATTRIBUTE_NAME
protected static String PRODUCT_SEARCH_RESULT_ATTRIBUTE_NAME
protected static String ACTIVE_FACETS_ATTRIBUTE_NAME
protected static String ALL_PRODUCTS_ATTRIBUTE_NAME
protected static String ALL_SKUS_ATTRIBUTE_NAME
protected SearchService searchService
protected SearchFacetDTOService facetService
@Autowired(required=false) @Qualifier(value="blCategoryDeepLinkService") protected DeepLinkService<Category> 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 getDefaultCategoryView()
protected SearchService getSearchService()
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.