org.broadleafcommerce.common.web
Class BLCAbstractHandlerMapping

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.handler.AbstractHandlerMapping
              extended by org.broadleafcommerce.common.web.BLCAbstractHandlerMapping
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.HandlerMapping

public abstract class BLCAbstractHandlerMapping
extends org.springframework.web.servlet.handler.AbstractHandlerMapping

Adds some convenience methods to the Spring AbstractHandlerMapping for BLC specific HandlerMappings. Always returns null from defaultHandlerMapping

Author:
bpolster

Field Summary
protected  String controllerName
           
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.web.servlet.HandlerMapping
BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
BLCAbstractHandlerMapping()
           
 
Method Summary
 String getControllerName()
          Returns the controllerName if set or "blPageController" by default.
 Object getDefaultHandler()
           
 void setControllerName(String controllerName)
          Sets the name of the bean to use as the Handler.
 
Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping
adaptInterceptor, detectMappedInterceptors, extendInterceptors, getAdaptedInterceptors, getHandler, getHandlerExecutionChain, getHandlerInternal, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controllerName

protected String controllerName
Constructor Detail

BLCAbstractHandlerMapping

public BLCAbstractHandlerMapping()
Method Detail

getDefaultHandler

public Object getDefaultHandler()
Overrides:
getDefaultHandler in class org.springframework.web.servlet.handler.AbstractHandlerMapping

getControllerName

public String getControllerName()
Returns the controllerName if set or "blPageController" by default.

Returns:

setControllerName

public void setControllerName(String controllerName)
Sets the name of the bean to use as the Handler. Typically the name of a controller bean.

Parameters:
controllerName -


Copyright © 2013. All Rights Reserved.