public class ProductHandlerMapping extends BLCAbstractHandlerMapping
Product,
CatalogService| Modifier and Type | Field and Description |
|---|---|
protected CatalogService |
catalogService |
String |
charEncoding |
static String |
CURRENT_PRODUCT_ATTRIBUTE_NAME |
protected String |
defaultTemplateName |
envBEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE| Constructor and Description |
|---|
ProductHandlerMapping() |
| Modifier and Type | Method and Description |
|---|---|
protected Product |
findProductUsingIdParam(javax.servlet.http.HttpServletRequest request) |
protected Product |
findProductUsingUrl(javax.servlet.http.HttpServletRequest request) |
String |
getDefaultTemplateName() |
protected Object |
getHandlerInternal(javax.servlet.http.HttpServletRequest request) |
void |
setDefaultTemplateName(String defaultTemplateName) |
boolean |
shouldSkipExecution(javax.servlet.http.HttpServletRequest request) |
allowCategoryResolutionUsingIdParam, allowProductResolutionUsingIdParam, getControllerName, getDefaultHandler, setControllerNameadaptInterceptor, detectMappedInterceptors, extendInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfiguration, getCorsConfigurations, getCorsHandlerExecutionChain, getCorsProcessor, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelpergetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextpublic static final String CURRENT_PRODUCT_ATTRIBUTE_NAME
protected String defaultTemplateName
protected CatalogService catalogService
@Value(value="${request.uri.encoding}")
public String charEncoding
protected Object getHandlerInternal(javax.servlet.http.HttpServletRequest request) throws Exception
getHandlerInternal in class org.springframework.web.servlet.handler.AbstractHandlerMappingExceptionpublic boolean shouldSkipExecution(javax.servlet.http.HttpServletRequest request)
throws org.springframework.web.bind.ServletRequestBindingException
org.springframework.web.bind.ServletRequestBindingExceptionprotected Product findProductUsingIdParam(javax.servlet.http.HttpServletRequest request) throws org.springframework.web.bind.ServletRequestBindingException
org.springframework.web.bind.ServletRequestBindingExceptionprotected Product findProductUsingUrl(javax.servlet.http.HttpServletRequest request) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic String getDefaultTemplateName()
public void setDefaultTemplateName(String defaultTemplateName)
Copyright © 2020. All rights reserved.