クラス 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.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping
- 実装済みのインターフェース一覧:
Aware、BeanNameAware、InitializingBean、ApplicationContextAware、Ordered、ServletContextAware、HandlerMapping
@ImportRuntimeHints(org.springframework.boot.actuate.endpoint.web.servlet.AbstractWebMvcEndpointHandlerMapping.AbstractWebMvcEndpointHandlerMappingRuntimeHints.class)
public abstract class AbstractWebMvcEndpointHandlerMapping
extends RequestMappingInfoHandlerMapping
implements InitializingBean
- 導入:
- 2.0.0
- 作成者:
- Andy Wilkinson, Madhura Bhave, Phillip Webb, Brian Clozel
ネストされたクラスの概要
ネストされたクラス修飾子と型クラス説明protected static interfaceルートエンドポイントでアクチュエーターリンクを提供するハンドラー。protected static interfaceSpring MVC で処理できるサーブレット Web 操作。フィールド概要
クラス org.springframework.web.servlet.handler.AbstractHandlerMapping から継承されたフィールド
mappingsLoggerクラス org.springframework.context.support.ApplicationObjectSupport から継承されたフィールド
loggerインターフェース org.springframework.web.servlet.HandlerMapping から継承されたフィールド
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インターフェース org.springframework.core.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, CorsConfiguration corsConfiguration, boolean shouldRegisterLinksMapping) 指定されたエンドポイントの操作のマッピングを提供する新しいAbstractWebMvcEndpointHandlerMappingを作成します。方法の概要
修飾子と型メソッド説明voidprotected HandlerMethodcreateHandlerMethod(ObjectSE handler, MethodSE method) protected voidextendInterceptors(ListSE<ObjectSE> interceptors) マップされている Web エンドポイントを返します。protected abstract AbstractWebMvcEndpointHandlerMapping.LinksHandlerルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。protected RequestMappingInfogetMappingForMethod(MethodSE method, ClassSE<?> handlerType) protected booleanhasCorsConfigurationSource(ObjectSE handler) protected 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を呼び出す前にラップできるようにするフックポイント。クラス org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping から継承されたメソッド
getDirectPaths, getHandlerInternal, getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchクラス org.springframework.web.servlet.handler.AbstractHandlerMethodMapping から継承されたメソッド
detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, lookupHandlerMethod, processCandidateBean, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, setPatternParser, unregisterMappingクラス org.springframework.web.servlet.handler.AbstractHandlerMapping から継承されたメソッド
adaptInterceptor, detectMappedInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfigurationSource, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getPatternParser, getUrlPathHelper, initApplicationContext, initInterceptors, initLookupPath, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper, usesPathPatternsクラス org.springframework.web.context.support.WebApplicationObjectSupport から継承されたメソッド
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextクラス org.springframework.context.support.ApplicationObjectSupport から継承されたメソッド
getApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContext
コンストラクターの詳細
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, 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 CorsConfiguration initCorsConfiguration(ObjectSE handler, MethodSE method, RequestMappingInfo mapping) - オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のinitCorsConfiguration
isHandler
- 次で指定:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のisHandler
getMappingForMethod
extendInterceptors
- オーバーライド:
- クラス
AbstractHandlerMappingのextendInterceptors
getLinksHandler
ルートエンドポイントでアクチュエーターリンクを提供するハンドラーを返します。- 戻り値:
- リンクハンドラー
getEndpoints
マップされている Web エンドポイントを返します。- 戻り値:
- エンドポイント