クラス BasePathAwareHandlerMapping
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.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping
org.springframework.data.rest.webmvc.BasePathAwareHandlerMapping
- 実装済みのインターフェース一覧:
Aware、BeanNameAware、InitializingBean、ApplicationContextAware、EmbeddedValueResolverAware、Ordered、ServletContextAware、MatchableHandlerMapping、HandlerMapping
- 既知の直属サブクラス
RepositoryRestHandlerMapping
リクエストマッピングを拡張する
RequestMappingHandlerMapping- 作成者:
- Oliver Gierke
フィールド概要
クラス 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コンストラクター概要
コンストラクターコンストラクター説明BasePathAwareHandlerMapping(RepositoryRestConfiguration configuration) 指定されたRepositoryRestConfigurationを使用して新しいBasePathAwareHandlerMappingを作成します。方法の概要
修飾子と型メソッド説明protected ProducesRequestConditioncustomize(ProducesRequestCondition condition) 指定されたProducesRequestConditionをカスタマイズします。protected RequestMappingInfogetMappingForMethod(MethodSE method, ClassSE<?> handlerType) protected booleanhasCorsConfigurationSource(ObjectSE handler) protected boolean使用すべきではありません。3.6 でのオーバーライド用。protected booleanisHandlerInternal(ClassSE<?> type) 指定されたコントローラー型がハンドラーと見なされるかどうかを返します。protected HandlerMethodlookupHandlerMethod(StringSE lookupPath, jakarta.servlet.http.HttpServletRequest request) クラス org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping から継承されたメソッド
afterPropertiesSet, createRequestMappingInfo, createRequestMappingInfo, getBuilderConfiguration, getContentNegotiationManager, getCustomMethodCondition, getCustomTypeCondition, getFileExtensions, getPathPrefixes, initCorsConfiguration, match, registerHandlerMethod, registerMapping, resolveEmbeddedValuesInPatterns, setContentNegotiationManager, setEmbeddedValueResolver, setPathPrefixes, setPatternParser, setUseRegisteredSuffixPatternMatch, setUseSuffixPatternMatch, setUseTrailingSlashMatch, useRegisteredSuffixPatternMatch, useSuffixPatternMatch, useTrailingSlashMatchクラス org.springframework.web.servlet.mvc.method.RequestMappingInfoHandlerMapping から継承されたメソッド
getDirectPaths, getHandlerInternal, getMappingComparator, getMappingPathPatterns, getMatchingMapping, handleMatch, handleNoMatchクラス org.springframework.web.servlet.handler.AbstractHandlerMethodMapping から継承されたメソッド
createHandlerMethod, detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerMethods, getHandlerMethodsForMappingName, getNamingStrategy, handlerMethodsInitialized, initHandlerMethods, processCandidateBean, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMappingクラス org.springframework.web.servlet.handler.AbstractHandlerMapping から継承されたメソッド
adaptInterceptor, detectMappedInterceptors, extendInterceptors, 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クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.web.servlet.HandlerMapping から継承されたメソッド
getHandler, usesPathPatternsインターフェース org.springframework.web.servlet.handler.MatchableHandlerMapping から継承されたメソッド
getPatternParser
コンストラクターの詳細
BasePathAwareHandlerMapping
指定されたRepositoryRestConfigurationを使用して新しいBasePathAwareHandlerMappingを作成します。- パラメーター:
configuration- null であってはなりません。
方法の詳細
lookupHandlerMethod
protected HandlerMethod lookupHandlerMethod(StringSE lookupPath, jakarta.servlet.http.HttpServletRequest request) throws ExceptionSE - オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のlookupHandlerMethod - 例外:
ExceptionSE
hasCorsConfigurationSource
- オーバーライド:
- クラス
AbstractHandlerMethodMapping<RequestMappingInfo>のhasCorsConfigurationSource
getMappingForMethod
- オーバーライド:
- クラス
RequestMappingHandlerMappingのgetMappingForMethod
customize
指定されたProducesRequestConditionをカスタマイズします。デフォルトの実装では、条件がそのまま返されます。- パラメーター:
condition- null になることはありません。- 戻り値:
isHandler
使用すべきではありません。3.6 でオーバーライドするため。4.0 でファイナルになります。指定された型がハンドラーと見なされるかどうかを返します。追加の構成チェックを実行します。ハンドラーの選択条件のみをカスタマイズする場合は、isHandlerInternal(Class)をオーバーライドします。4.0 でファイナルになります。isHandlerInternal
指定されたコントローラー型がハンドラーと見なされるかどうかを返します。- パラメーター:
type- null になることはありません。- 戻り値: