クラス WebFluxIntegrationRequestMappingHandlerMapping
- 実装されているすべてのインターフェース:
EventListenerSE
、Aware
、BeanNameAware
、BeanPostProcessor
、DestructionAwareBeanPostProcessor
、InitializingBean
、ApplicationContextAware
、ApplicationListener<ContextRefreshedEvent>
、EmbeddedValueResolverAware
、Ordered
、HandlerMapping
<inbound-channel-adapter/>
および <inbound-gateway/>
要素の Spring Integration HTTP 構成から HttpRequestHandlingEndpointSupport
の RequestMappingInfo
を検出および登録する HandlerMapping
実装。 このクラスは、まだ登録されていない場合、<inbound-gateway/>
要素の解析フェーズ中にアプリケーションコンテキストで Bean として自動的に構成されます。ただし、RequestMappingHandlerMapping
に適切な構成で通常の Bean として構成できます。'id' WebFluxContextUtils.HANDLER_MAPPING_BEAN_NAME
を使用して、アプリケーションコンテキストに類似の Bean を 1 つだけ含めることをお勧めします。
ほとんどの場合、Spring MVC は org.springframework.stereotype.Controller
および RequestMapping
を介してリクエストマッピングを構成することを提案します。これが、Spring MVC のハンドラーマッピングインフラストラクチャが HandlerMethod
に依存している理由です。同じ org.springframework.stereotype.Controller
ユーザークラスの異なるメソッドが独自の RequestMapping
を持つ場合があるためです。一方、すべての Spring Integration HTTP 受信 エンドポイントは、同じ HttpRequestHandlingEndpointSupport
クラスに基づいて構成されており、Spring MVC に HandlerMethod
がない単一の RequestMappingInfo
構成はありません。WebFluxIntegrationRequestMappingHandlerMapping
は、メソッドレベルのアノテーションとコンポーネントレベル (Spring Integration XML など) の構成の間の HandlerMapping
妥協の実装です。
バージョン 5.1 以降、このクラスは DestructionAwareBeanPostProcessor
を実装して、動的に宣言された Bean の実行時に HTTP エンドポイントを登録します。IntegrationFlowContext
を使用して、WebFluxInboundEndpoint
の破棄中に登録を解除します。
- 導入:
- 5.0
- 作成者:
- Artem Bilan, Gary Russell, Ngoc Nhan
- 関連事項:
フィールドのサマリー
クラス org.springframework.web.reactive.handler.AbstractHandlerMapping から継承されたフィールド
mappingsLogger
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたフィールド
logger
インターフェース org.springframework.web.reactive.HandlerMapping から継承されたフィールド
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
インターフェース org.springframework.core.Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明void
protected void
detectHandlerMethods
(ObjectSE handler) protected CorsConfiguration
initCorsConfiguration
(ObjectSE handler, MethodSE method, RequestMappingInfo mappingInfo) protected boolean
void
HttpRequestHandlingEndpointSupport
は自動作成されたrequestChannel
に依存する可能性があるため、MVC ハンドラーの検出は可能な限り遅く延期する必要があります。void
postProcessBeforeDestruction
(ObjectSE bean, StringSE beanName) postProcessBeforeInitialization
(ObjectSE bean, StringSE beanName) boolean
requiresDestruction
(ObjectSE bean) クラス org.springframework.web.reactive.result.method.annotation.RequestMappingHandlerMapping から継承されたメソッド
createRequestMappingInfo, createRequestMappingInfo, getContentTypeResolver, getCustomMethodCondition, getCustomTypeCondition, getMappingForMethod, getPathPrefixes, registerHandlerMethod, registerMapping, resolveEmbeddedValuesInPatterns, setContentTypeResolver, setEmbeddedValueResolver, setPathPrefixes
クラス org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping から継承されたメソッド
getDirectPaths, getHandlerInternal, getMappingComparator, getMatchingMapping, handleMatch, handleNoMatch
クラス org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping から継承されたメソッド
createHandlerMethod, getCorsConfiguration, getHandlerMethods, handlerMethodsInitialized, hasCorsConfigurationSource, initHandlerMethods, lookupHandlerMethod, unregisterMapping
クラス org.springframework.web.reactive.handler.AbstractHandlerMapping から継承されたメソッド
formatMappingName, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch
クラス org.springframework.context.support.ApplicationObjectSupport から継承されたメソッド
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.context.ApplicationListener から継承されたメソッド
supportsAsyncExecution
インターフェース org.springframework.beans.factory.config.BeanPostProcessor から継承されたメソッド
postProcessAfterInitialization
コンストラクターの詳細
WebFluxIntegrationRequestMappingHandlerMapping
public WebFluxIntegrationRequestMappingHandlerMapping()
メソッドの詳細
postProcessBeforeInitialization
public ObjectSE postProcessBeforeInitialization(ObjectSE bean, StringSE beanName) throws BeansException - 次で指定:
- インターフェース
BeanPostProcessor
のpostProcessBeforeInitialization
- 例外:
BeansException
postProcessBeforeDestruction
- 次で指定:
- インターフェース
DestructionAwareBeanPostProcessor
のpostProcessBeforeDestruction
- 例外:
BeansException
requiresDestruction
- 次で指定:
- インターフェース
DestructionAwareBeanPostProcessor
のrequiresDestruction
isHandler
- オーバーライド:
- クラス
RequestMappingHandlerMapping
のisHandler
detectHandlerMethods
- オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>
のdetectHandlerMethods
initCorsConfiguration
protected CorsConfiguration initCorsConfiguration(ObjectSE handler, MethodSE method, RequestMappingInfo mappingInfo) - オーバーライド:
- クラス
RequestMappingHandlerMapping
のinitCorsConfiguration
onApplicationEvent
HttpRequestHandlingEndpointSupport
は自動作成されたrequestChannel
に依存する可能性があるため、MVC ハンドラーの検出は可能な限り遅く延期する必要があります。- 次で指定:
- インターフェース
ApplicationListener<ContextRefreshedEvent>
のonApplicationEvent
- 関連事項:
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
InitializingBean
のafterPropertiesSet
- オーバーライド:
- クラス
RequestMappingHandlerMapping
のafterPropertiesSet