public final class IntegrationRequestMappingHandlerMapping
extends org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
HandlerMapping
implementation that
detects and registers RequestMappingInfo
s for HttpRequestHandlingEndpointSupport
from a Spring Integration HTTP configuration of
<inbound-channel-adapter/>
and <inbound-gateway/>
elements.
This class is automatically configured as bean in the application context on the parsing phase of
the <inbound-channel-adapter/>
and <inbound-gateway/>
elements, if there is none registered, yet.
However it can be configured as a regular bean with appropriate configuration for
RequestMappingHandlerMapping
. It is recommended to have only one similar bean in the application context
using the 'id' HttpContextUtils.HANDLER_MAPPING_BEAN_NAME
.
In most cases Spring MVC offers to configure Request Mapping via Controller
and RequestMapping
.
That's why Spring MVC's Handler Mapping infrastructure relies on HandlerMethod
,
as different methods at the same Controller
user-class may have their own
RequestMapping
. On the other side, all Spring Integration HTTP Inbound
Endpoints are configured on the basis of the same HttpRequestHandlingEndpointSupport
class and there is no
single RequestMappingInfo
configuration without HandlerMethod
in Spring MVC.
Accordingly IntegrationRequestMappingHandlerMapping
is a some HandlerMapping
compromise implementation between method-level annotations and component-level (e.g. Spring Integration XML) configurations.RequestMapping
,
RequestMappingHandlerMapping
Constructor and Description |
---|
IntegrationRequestMappingHandlerMapping() |
Modifier and Type | Method and Description |
---|---|
protected void |
detectHandlerMethods(java.lang.Object handler) |
protected org.springframework.web.servlet.HandlerExecutionChain |
getHandlerExecutionChain(java.lang.Object handler,
javax.servlet.http.HttpServletRequest request) |
protected boolean |
isHandler(java.lang.Class<?> beanType) |
afterPropertiesSet, createRequestMappingInfo, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getMappingForMethod, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatch
getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatch
createHandlerMethod, getHandlerInternal, getHandlerMethods, handlerMethodsInitialized, initHandlerMethods, lookupHandlerMethod, registerHandlerMethod, setDetectHandlerMethodsInAncestorContexts
adaptInterceptor, detectMappedInterceptors, extendInterceptors, getAdaptedInterceptors, getDefaultHandler, getHandler, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
public IntegrationRequestMappingHandlerMapping()
protected final boolean isHandler(java.lang.Class<?> beanType)
isHandler
in class org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
protected final org.springframework.web.servlet.HandlerExecutionChain getHandlerExecutionChain(java.lang.Object handler, javax.servlet.http.HttpServletRequest request)
getHandlerExecutionChain
in class org.springframework.web.servlet.handler.AbstractHandlerMapping
protected final void detectHandlerMethods(java.lang.Object handler)
detectHandlerMethods
in class org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<org.springframework.web.servlet.mvc.method.RequestMappingInfo>