public abstract class RequestMappingInfoHandlerMapping extends AbstractHandlerMethodMapping<RequestMappingInfo>
RequestMappingInfo
がリクエストとハンドラーメソッド間のマッピングを定義するクラスの抽象基本クラス。logger
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, INTROSPECT_TYPE_LEVEL_MAPPING, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
修飾子 | コンストラクターと説明 |
---|---|
protected | RequestMappingInfoHandlerMapping() |
修飾子と型 | メソッドと説明 |
---|---|
protected ComparatorSE<RequestMappingInfo> | getMappingComparator(HttpServletRequestEE request) リクエストに一致する RequestMappingInfos をソートするためのコンパレータを提供します。 |
protected SetSE<StringSE> | getMappingPathPatterns(RequestMappingInfo info) この RequestMappingInfo に関連付けられた URL パスパターンを取得します。 |
protected RequestMappingInfo | getMatchingMapping(RequestMappingInfo info, HttpServletRequestEE request) 指定された RequestMappingInfo が現在のリクエストに一致するかどうかを確認し、現在のリクエストに一致する条件(たとえば、URL パターンのサブセット)で(潜在的に新しい)インスタンスを返します。 |
protected void | handleMatch(RequestMappingInfo info, StringSE lookupPath, HttpServletRequestEE request) リクエストで URI テンプレート変数、マトリックス変数、作成可能なメディア型を公開します。 |
protected HandlerMethod | handleNoMatch(SetSE<RequestMappingInfo> infos, StringSE lookupPath, HttpServletRequestEE request) すべての RequestMappingInfo をもう一度繰り返し、少なくとも URL で一致するものがあるかどうかを調べ、一致しないものに応じて例外を発生させます。 |
afterPropertiesSet, createHandlerMethod, detectHandlerMethods, getCandidateBeanNames, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getHandlerMethodsForMappingName, getMappingForMethod, getNamingStrategy, handlerMethodsInitialized, initCorsConfiguration, initHandlerMethods, isHandler, lookupHandlerMethod, processCandidateBean, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, unregisterMapping
adaptInterceptor, detectMappedInterceptors, extendInterceptors, formatMappingName, getAdaptedInterceptors, getCorsConfigurations, getCorsHandlerExecutionChain, getCorsProcessor, getDefaultHandler, getHandler, getHandlerExecutionChain, getMappedInterceptors, getOrder, getPathMatcher, getUrlPathHelper, initApplicationContext, initInterceptors, setAlwaysUseFullPath, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setDefaultHandler, setInterceptors, setOrder, setPathMatcher, setRemoveSemicolonContent, setUrlDecode, setUrlPathHelper
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
getApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContext
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected SetSE<StringSE> getMappingPathPatterns(RequestMappingInfo info)
RequestMappingInfo
に関連付けられた URL パスパターンを取得します。protected RequestMappingInfo getMatchingMapping(RequestMappingInfo info, HttpServletRequestEE request)
AbstractHandlerMethodMapping<RequestMappingInfo>
の getMatchingMapping
info
- 一致を取得するマッピング request
- 現在の HTTP サーブレットリクエスト null
。protected ComparatorSE<RequestMappingInfo> getMappingComparator(HttpServletRequestEE request)
AbstractHandlerMethodMapping<RequestMappingInfo>
の getMappingComparator
request
- 現在のリクエスト null
)protected void handleMatch(RequestMappingInfo info, StringSE lookupPath, HttpServletRequestEE request)
AbstractHandlerMethodMapping<RequestMappingInfo>
の handleMatch
info
- 一致するマッピング lookupPath
- 現在のサーブレットマッピング内のマッピングルックアップパス request
- 現在のリクエスト HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE
, HandlerMapping.MATRIX_VARIABLES_ATTRIBUTE
, HandlerMapping.PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE
protected HandlerMethod handleNoMatch(SetSE<RequestMappingInfo> infos, StringSE lookupPath, HttpServletRequestEE request) throws ServletExceptionEE
AbstractHandlerMethodMapping<RequestMappingInfo>
の handleNoMatch
infos
- 登録済みのすべてのマッピング lookupPath
- 現在のサーブレットマッピング内のマッピングルックアップパス request
- 現在のリクエスト HttpRequestMethodNotSupportedException
- HTTP メソッドではなく URL で一致する場合 HttpMediaTypeNotAcceptableException
- 消耗品 / 生産可能なメディア型ではなく、URL で一致する場合 ServletExceptionEE
- エラーの場合