public abstract class AbstractHandlerMapping extends org.springframework.context.support.ApplicationObjectSupport implements HandlerMapping, org.springframework.core.Ordered
HandlerMapping
implementations.BEST_MATCHING_PATTERN_ATTRIBUTE, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
Constructor and Description |
---|
AbstractHandlerMapping() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
org.springframework.web.util.HttpRequestPathHelper |
getPathHelper()
Return the
HttpRequestPathHelper implementation to use for
resolution of lookup paths. |
org.springframework.util.PathMatcher |
getPathMatcher()
Return the PathMatcher implementation to use for matching URL paths
against registered URL patterns.
|
void |
setOrder(int order)
Specify the order value for this HandlerMapping bean.
|
void |
setPathHelper(org.springframework.web.util.HttpRequestPathHelper pathHelper)
Set the
HttpRequestPathHelper to use for resolution of lookup
paths. |
void |
setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
Set the PathMatcher implementation to use for matching URL paths
against registered URL patterns.
|
void |
setUrlDecode(boolean urlDecode)
Set if the path should be URL-decoded.
|
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHandler
public final void setOrder(int order)
Default value is Integer.MAX_VALUE
, meaning that it's non-ordered.
Ordered.getOrder()
public final int getOrder()
getOrder
in interface org.springframework.core.Ordered
public void setUrlDecode(boolean urlDecode)
HttpRequestPathHelper.setUrlDecode(boolean)
public void setPathHelper(org.springframework.web.util.HttpRequestPathHelper pathHelper)
HttpRequestPathHelper
to use for resolution of lookup
paths. Use this to override the default implementation with a custom
subclass or to share common path helper settings across multiple
HandlerMappings.public org.springframework.web.util.HttpRequestPathHelper getPathHelper()
HttpRequestPathHelper
implementation to use for
resolution of lookup paths.public void setPathMatcher(org.springframework.util.PathMatcher pathMatcher)
AntPathMatcher
public org.springframework.util.PathMatcher getPathMatcher()