クラス 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 classReactor のbounded elastic schedulerを使用して、別のスレッドでブロッキング操作の呼び出しを実行するOperationInvoker。protected static final classprotected static interfaceルートエンドポイントにアクチュエーターリンクを提供するリアクティブハンドラー。protected static interfaceWebFlux で処理できるリアクティブ 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 HandlerMethodcreateHandlerMethod(ObjectSE handler, MethodSE method) マップされている Web エンドポイントを返します。protected abstract AbstractWebFluxEndpointHandlerMapping.LinksHandlerルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。protected RequestMappingInfogetMappingForMethod(MethodSE method, ClassSE<?> handlerType) protected booleanhasCorsConfigurationSource(ObjectSE handler) protected CorsConfigurationinitCorsConfiguration(ObjectSE handler, MethodSE method, RequestMappingInfo mapping) protected voidprotected booleanprotected voidregisterReadMapping(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 エンドポイントを返します。- 戻り値:
- エンドポイント