org.broadleafcommerce.openadmin.web.handler
Class AdminNavigationHandlerMapping

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
                  extended by org.broadleafcommerce.openadmin.web.handler.AdminNavigationHandlerMapping
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 class AdminNavigationHandlerMapping
extends BLCAbstractHandlerMapping

This handler mapping works with the AdminSection entity to determine if a section has been configured for the passed in URL. If the URL matches a valid AdminSection then this mapping returns the handler configured via the controllerName property or blAdminModulesController by default.

Since:
2.1
Author:
elbertbautista

Field Summary
static String CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME
           
static String CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME
           
 
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
AdminNavigationHandlerMapping()
           
 
Method Summary
protected  Object getHandlerInternal(javax.servlet.http.HttpServletRequest request)
           
 String getRequestURIWithoutPreamble(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class org.broadleafcommerce.common.web.BLCAbstractHandlerMapping
getControllerName, getDefaultHandler, setControllerName
 
Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerMapping
adaptInterceptor, detectMappedInterceptors, extendInterceptors, getAdaptedInterceptors, getHandler, getHandlerExecutionChain, 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

CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME

public static final String CURRENT_ADMIN_MODULE_ATTRIBUTE_NAME
See Also:
Constant Field Values

CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME

public static final String CURRENT_ADMIN_SECTION_ATTRIBUTE_NAME
See Also:
Constant Field Values
Constructor Detail

AdminNavigationHandlerMapping

public AdminNavigationHandlerMapping()
Method Detail

getHandlerInternal

protected Object getHandlerInternal(javax.servlet.http.HttpServletRequest request)
                             throws Exception
Specified by:
getHandlerInternal in class org.springframework.web.servlet.handler.AbstractHandlerMapping
Throws:
Exception

getRequestURIWithoutPreamble

public String getRequestURIWithoutPreamble(javax.servlet.http.HttpServletRequest request)


Copyright © 2013. All Rights Reserved.