クラス AbstractWebFluxEndpointHandlerMapping
java.lang.ObjectSE
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.reactive.handler.AbstractHandlerMapping
org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping<RequestMappingInfo>
org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping
org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping
- 実装されたすべてのインターフェース:
Aware
、BeanNameAware
、InitializingBean
、ApplicationContextAware
、Ordered
、HandlerMapping
@ImportRuntimeHints(org.springframework.boot.actuate.endpoint.web.reactive.AbstractWebFluxEndpointHandlerMapping.AbstractWebFluxEndpointHandlerMappingRuntimeHints.class)
public abstract class AbstractWebFluxEndpointHandlerMapping
extends RequestMappingInfoHandlerMapping
Spring WebFlux を使用して HTTP 経由で Web エンドポイントを利用可能にするカスタム
HandlerMapping
。- 導入:
- 2.0.0
- 作成者:
- Andy Wilkinson, Madhura Bhave, Phillip Webb, Brian Clozel, Scott Frederick
ネストされたクラスのサマリー
ネストされたクラス修飾子と型クラス説明protected static final class
Reactor のbounded elastic scheduler
を使用して、別のスレッドでブロッキング操作の呼び出しを実行するOperationInvoker
。protected static final class
protected static interface
ルートエンドポイントにアクチュエーターリンクを提供するリアクティブハンドラー。protected static interface
WebFlux で処理できるリアクティブ Web 操作。フィールドのサマリー
クラス 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
コンストラクターの概要
コンストラクターコンストラクター説明AbstractWebFluxEndpointHandlerMapping
(EndpointMapping endpointMapping, CollectionSE<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping) 指定されたwebEndpoints
の操作のマッピングを提供する新しいAbstractWebFluxEndpointHandlerMapping
を作成します。メソッドのサマリー
修飾子と型メソッド説明protected HandlerMethod
createHandlerMethod
(ObjectSE handler, MethodSE method) マップされている Web エンドポイントを返します。protected abstract AbstractWebFluxEndpointHandlerMapping.LinksHandler
ルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。protected RequestMappingInfo
getMappingForMethod
(MethodSE method, ClassSE<?> handlerType) protected boolean
hasCorsConfigurationSource
(ObjectSE handler) protected CorsConfiguration
initCorsConfiguration
(ObjectSE handler, MethodSE method, RequestMappingInfo mapping) protected void
protected boolean
protected void
registerReadMapping
(RequestMappingInfo requestMappingInfo, ExposableWebEndpoint endpoint, WebOperation operation) wrapReactiveWebOperation
(ExposableWebEndpoint endpoint, WebOperation operation, AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation reactiveWebOperation) サブクラスがAbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation
を呼び出す前にラップできるようにするフックポイント。クラス org.springframework.web.reactive.result.method.RequestMappingInfoHandlerMapping から継承されたメソッド
getDirectPaths, getHandlerInternal, getMappingComparator, getMatchingMapping, handleMatch, handleNoMatch
クラス org.springframework.web.reactive.result.method.AbstractHandlerMethodMapping から継承されたメソッド
afterPropertiesSet, detectHandlerMethods, getCorsConfiguration, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, 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
コンストラクターの詳細
AbstractWebFluxEndpointHandlerMapping
public AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, CollectionSE<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping) 指定されたwebEndpoints
の操作のマッピングを提供する新しいAbstractWebFluxEndpointHandlerMapping
を作成します。- パラメーター:
endpointMapping
- すべてのエンドポイントのベースマッピングendpoints
- Web エンドポイントendpointMediaTypes
- エンドポイントによって消費および生成されるメディア型corsConfiguration
- エンドポイントの CORS 設定shouldRegisterLinksMapping
- リンクのエンドポイントを登録する必要があるかどうか
メソッドの詳細
initHandlerMethods
protected void initHandlerMethods()- オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>
のinitHandlerMethods
createHandlerMethod
- オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>
のcreateHandlerMethod
registerReadMapping
protected void registerReadMapping(RequestMappingInfo requestMappingInfo, ExposableWebEndpoint endpoint, WebOperation operation) wrapReactiveWebOperation
protected AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation wrapReactiveWebOperation(ExposableWebEndpoint endpoint, WebOperation operation, AbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation reactiveWebOperation) 呼び出される前にサブクラスがAbstractWebFluxEndpointHandlerMapping.ReactiveWebOperation
をラップできるようにするフックポイント。セキュリティなどの追加機能を追加できます。- パラメーター:
endpoint
- ソースエンドポイントoperation
- ソース操作reactiveWebOperation
- ラップするリアクティブ Web 操作- 戻り値:
- ラップされたリアクティブ Web 操作
hasCorsConfigurationSource
- オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>
のhasCorsConfigurationSource
initCorsConfiguration
protected CorsConfiguration initCorsConfiguration(ObjectSE handler, MethodSE method, RequestMappingInfo mapping) - オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>
のinitCorsConfiguration
isHandler
- 次で指定:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>
のisHandler
getMappingForMethod
getLinksHandler
ルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。- 戻り値:
- リンクハンドラー
getEndpoints
マップされている Web エンドポイントを返します。- 戻り値:
- エンドポイント