クラス 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 interface
Spring 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
を作成します。メソッドのサマリー
修飾子と型メソッド説明void
protected HandlerMethod
createHandlerMethod
(ObjectSE handler, MethodSE method) protected void
extendInterceptors
(ListSE<ObjectSE> interceptors) マップされている Web エンドポイントを返します。protected abstract AbstractWebMvcEndpointHandlerMapping.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
registerMapping
(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 エンドポイントを返します。- 戻り値:
- エンドポイント