クラス 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.webflux.actuate.endpoint.web.AbstractWebFluxEndpointHandlerMapping
- 実装されているすべてのインターフェース:
Aware, BeanNameAware, InitializingBean, ApplicationContextAware, Ordered, HandlerMapping
@ImportRuntimeHints(org.springframework.boot.webflux.actuate.endpoint.web.AbstractWebFluxEndpointHandlerMapping.AbstractWebFluxEndpointHandlerMappingRuntimeHints.class)
public abstract class AbstractWebFluxEndpointHandlerMapping
extends RequestMappingInfoHandlerMapping
Spring WebFlux を使用して HTTP 経由で Web エンドポイントを利用可能にするカスタム
HandlerMapping。- 導入:
- 4.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 操作。フィールドのサマリー
クラス AbstractHandlerMapping から継承されたフィールド
mappingsLoggerクラス ApplicationObjectSupport から継承されたフィールド
loggerインターフェース HandlerMapping から継承されたフィールド
API_VERSION_ATTRIBUTE, BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTEインターフェース Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクターコンストラクター説明AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, CollectionSE<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, @Nullable CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping) 指定されたwebEndpointsの操作のマッピングを提供する新しいAbstractWebFluxEndpointHandlerMappingを作成します。メソッドのサマリー
修飾子と型メソッド説明protected HandlerMethodcreateHandlerMethod(ObjectSE handler, MethodSE method) protected @Nullable CorsConfigurationgetCorsConfiguration(ObjectSE handler, ServerWebExchange exchange) マップされている Web エンドポイントを返します。protected abstract AbstractWebFluxEndpointHandlerMapping.LinksHandlerルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。protected @Nullable RequestMappingInfogetMappingForMethod(MethodSE method, ClassSE<?> handlerType) protected booleanhasCorsConfigurationSource(ObjectSE handler) protected @Nullable 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を呼び出す前にラップできるようにするフックポイント。クラス RequestMappingInfoHandlerMapping から継承されたメソッド
getDirectPaths, getHandlerInternal, getMappingComparator, getMatchingMapping, handleMatch, handleNoMatchクラス AbstractHandlerMethodMapping から継承されたメソッド
afterPropertiesSet, detectHandlerMethods, getHandlerMethods, handlerMethodsInitialized, lookupHandlerMethod, registerHandlerMethod, registerMapping, unregisterMappingクラス AbstractHandlerMapping から継承されたメソッド
formatMappingName, getApiVersionStrategy, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setApiVersionStrategy, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch
コンストラクターの詳細
AbstractWebFluxEndpointHandlerMapping
public AbstractWebFluxEndpointHandlerMapping(EndpointMapping endpointMapping, CollectionSE<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, @Nullable 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 @Nullable CorsConfiguration initCorsConfiguration(ObjectSE handler, MethodSE method, RequestMappingInfo mapping) - オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のinitCorsConfiguration
getCorsConfiguration
protected @Nullable CorsConfiguration getCorsConfiguration(ObjectSE handler, ServerWebExchange exchange) - オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のgetCorsConfiguration
isHandler
- 次で指定:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のisHandler
getMappingForMethod
getLinksHandler
ルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。- 戻り値:
- リンクハンドラー
getEndpoints