クラス AbstractWebMvcEndpointHandlerMapping
java.lang.ObjectSE
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.handler.AbstractHandlerMapping
org.springframework.web.servlet.handler.AbstractHandlerMethodMapping<RequestMappingInfo>
org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping
org.springframework.boot.webmvc.actuate.endpoint.web.AbstractWebMvcEndpointHandlerMapping
- 実装されているすべてのインターフェース:
Aware, BeanNameAware, InitializingBean, ApplicationContextAware, Ordered, ServletContextAware, HandlerMapping
@ImportRuntimeHints(org.springframework.boot.webmvc.actuate.endpoint.web.AbstractWebMvcEndpointHandlerMapping.AbstractWebMvcEndpointHandlerMappingRuntimeHints.class)
public abstract class AbstractWebMvcEndpointHandlerMapping
extends RequestMappingInfoHandlerMapping
implements InitializingBean
- 導入:
- 4.0.0
- 作成者:
- Andy Wilkinson, Madhura Bhave, Phillip Webb, Brian Clozel
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明protected static interfaceルートエンドポイントでアクチュエーターリンクを提供するハンドラー。protected static interfaceSpring MVC で処理できるサーブレット Web 操作。フィールドのサマリー
クラス AbstractHandlerMapping から継承されたフィールド
mappingsLoggerクラス ApplicationObjectSupport から継承されたフィールド
loggerインターフェース HandlerMapping から継承されたフィールド
API_VERSION_ATTRIBUTE, BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, LOOKUP_PATH, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTEインターフェース Ordered から継承されたフィールド
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEコンストラクターの概要
コンストラクターコンストラクター説明AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, CollectionSE<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, boolean shouldRegisterLinksMapping) 指定されたwebEndpointsの操作のマッピングを提供する新しいWebEndpointHandlerMappingを作成します。AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, CollectionSE<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, @Nullable CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping) 指定されたエンドポイントの操作のマッピングを提供する新しいAbstractWebMvcEndpointHandlerMappingを作成します。メソッドのサマリー
修飾子と型メソッド説明voidprotected HandlerMethodcreateHandlerMethod(ObjectSE handler, MethodSE method) protected @Nullable CorsConfigurationgetCorsConfiguration(ObjectSE handler, HttpServletRequestEE request) マップされている Web エンドポイントを返します。protected abstract AbstractWebMvcEndpointHandlerMapping.LinksHandlerルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。protected @Nullable RequestMappingInfogetMappingForMethod(MethodSE method, ClassSE<?> handlerType) protected booleanhasCorsConfigurationSource(ObjectSE handler) protected @Nullable CorsConfigurationinitCorsConfiguration(ObjectSE handler, MethodSE method, RequestMappingInfo mapping) protected voidprotected booleanprotected voidregisterMapping(ExposableWebEndpoint endpoint, WebOperationRequestPredicate predicate, WebOperation operation, StringSE path) wrapServletWebOperation(ExposableWebEndpoint endpoint, WebOperation operation, AbstractWebMvcEndpointHandlerMapping.ServletWebOperation servletWebOperation) サブクラスがAbstractWebMvcEndpointHandlerMapping.ServletWebOperationを呼び出す前にラップできるようにするフックポイント。クラス RequestMappingInfoHandlerMapping から継承されたメソッド
getDirectPaths, getHandlerInternal, getMappingComparator, getMatchingMapping, handleMatch, handleNoMatchクラス AbstractHandlerMethodMapping から継承されたメソッド
detectHandlerMethods, getCandidateBeanNames, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, lookupHandlerMethod, processCandidateBean, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, setPatternParser, unregisterMappingクラス AbstractHandlerMapping から継承されたメソッド
adaptInterceptor, detectMappedInterceptors, extendInterceptors, formatMappingName, getAdaptedInterceptors, getApiVersionStrategy, getCorsConfigurationSource, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getPatternParser, getUrlPathHelper, initApplicationContext, initInterceptors, initLookupPath, setAlwaysUseFullPath, setApiVersionStrategy, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper, usesPathPatternsクラス WebApplicationObjectSupport から継承されたメソッド
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
コンストラクターの詳細
AbstractWebMvcEndpointHandlerMapping
public AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, CollectionSE<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, boolean shouldRegisterLinksMapping) 指定されたwebEndpointsの操作のマッピングを提供する新しいWebEndpointHandlerMappingを作成します。- パラメーター:
endpointMapping- すべてのエンドポイントのベースマッピングendpoints- Web エンドポイントendpointMediaTypes- エンドポイントによって消費および生成されるメディア型shouldRegisterLinksMapping- リンクのエンドポイントを登録する必要があるかどうか
AbstractWebMvcEndpointHandlerMapping
public AbstractWebMvcEndpointHandlerMapping(EndpointMapping endpointMapping, CollectionSE<ExposableWebEndpoint> endpoints, EndpointMediaTypes endpointMediaTypes, @Nullable CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping) 指定されたエンドポイントの操作のマッピングを提供する新しいAbstractWebMvcEndpointHandlerMappingを作成します。- パラメーター:
endpointMapping- すべてのエンドポイントのベースマッピングendpoints- Web エンドポイントendpointMediaTypes- エンドポイントによって消費および生成されるメディア型corsConfiguration- エンドポイントまたはnullの CORS 構成shouldRegisterLinksMapping- リンクのエンドポイントを登録する必要があるかどうか
メソッドの詳細
afterPropertiesSet
public void afterPropertiesSet()- 次で指定:
- インターフェース
InitializingBeanのafterPropertiesSet - オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のafterPropertiesSet
initHandlerMethods
protected void initHandlerMethods()- オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のinitHandlerMethods
createHandlerMethod
- オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のcreateHandlerMethod
registerMapping
protected void registerMapping(ExposableWebEndpoint endpoint, WebOperationRequestPredicate predicate, WebOperation operation, StringSE path) wrapServletWebOperation
protected AbstractWebMvcEndpointHandlerMapping.ServletWebOperation wrapServletWebOperation(ExposableWebEndpoint endpoint, WebOperation operation, AbstractWebMvcEndpointHandlerMapping.ServletWebOperation servletWebOperation) 呼び出される前にサブクラスがAbstractWebMvcEndpointHandlerMapping.ServletWebOperationをラップできるようにするフックポイント。セキュリティなどの追加機能を追加できます。- パラメーター:
endpoint- ソースエンドポイントoperation- ソース操作servletWebOperation- ラップするサーブレット 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, HttpServletRequestEE request) - オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のgetCorsConfiguration
isHandler
- 次で指定:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のisHandler
getMappingForMethod
getLinksHandler
ルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。- 戻り値:
- リンクハンドラー
getEndpoints