public abstract class RequestMappingInfoHandlerMapping extends AbstractHandlerMethodMapping<RequestMappingInfo>
RequestMappingInfo
がリクエストとハンドラーメソッド間のマッピングを定義するクラスの抽象基本クラス。logger
BEST_MATCHING_HANDLER_ATTRIBUTE, BEST_MATCHING_PATTERN_ATTRIBUTE, MATRIX_VARIABLES_ATTRIBUTE, PATH_WITHIN_HANDLER_MAPPING_ATTRIBUTE, PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE, URI_TEMPLATE_VARIABLES_ATTRIBUTE
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターと説明 |
---|
RequestMappingInfoHandlerMapping() |
修飾子と型 | メソッドと説明 |
---|---|
protected ComparatorSE<RequestMappingInfo> | getMappingComparator(ServerWebExchange exchange) リクエストに一致する RequestMappingInfos をソートするためのコンパレータを提供します。 |
protected RequestMappingInfo | getMatchingMapping(RequestMappingInfo info, ServerWebExchange exchange) 指定された RequestMappingInfo が現在のリクエストに一致するかどうかを確認し、現在のリクエストに一致する条件(たとえば、URL パターンのサブセット)で(潜在的に新しい)インスタンスを返します。 |
protected void | handleMatch(RequestMappingInfo info, HandlerMethod handlerMethod, ServerWebExchange exchange) リクエストで URI テンプレート変数、マトリックス変数、作成可能なメディア型を公開します。 |
protected HandlerMethod | handleNoMatch(SetSE<RequestMappingInfo> infos, ServerWebExchange exchange) すべての RequestMappingInfos をもう一度繰り返し、少なくとも URL による一致があるかどうかを確認し、それに応じて例外を発生させます。 |
afterPropertiesSet, createHandlerMethod, detectHandlerMethods, getCorsConfiguration, getHandlerInternal, getHandlerMethods, getMappingForMethod, handlerMethodsInitialized, initCorsConfiguration, initHandlerMethods, isHandler, lookupHandlerMethod, registerHandlerMethod, registerMapping, unregisterMapping
formatMappingName, getCorsProcessor, getHandler, getOrder, getPathPatternParser, setBeanName, setCorsConfigurations, setCorsConfigurationSource, setCorsProcessor, setOrder, setUseCaseSensitiveMatch, setUseTrailingSlashMatch
getApplicationContext, getMessageSourceAccessor, initApplicationContext, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContext
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected RequestMappingInfo getMatchingMapping(RequestMappingInfo info, ServerWebExchange exchange)
AbstractHandlerMethodMapping<RequestMappingInfo>
の getMatchingMapping
info
- 一致を取得するマッピング exchange
- 現在の交換 null
。protected ComparatorSE<RequestMappingInfo> getMappingComparator(ServerWebExchange exchange)
AbstractHandlerMethodMapping<RequestMappingInfo>
の getMappingComparator
exchange
- 現在の交換 null
)protected void handleMatch(RequestMappingInfo info, HandlerMethod handlerMethod, ServerWebExchange exchange)
AbstractHandlerMethodMapping<RequestMappingInfo>
の handleMatch
info
- 一致するマッピング handlerMethod
- マッチング方法 exchange
- 現在の交換 HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE
, HandlerMapping.MATRIX_VARIABLES_ATTRIBUTE
, HandlerMapping.PRODUCIBLE_MEDIA_TYPES_ATTRIBUTE
protected HandlerMethod handleNoMatch(SetSE<RequestMappingInfo> infos, ServerWebExchange exchange) throws ExceptionSE
AbstractHandlerMethodMapping<RequestMappingInfo>
の handleNoMatch
infos
- 登録済みのすべてのマッピング exchange
- 現在の交換 null
MethodNotAllowedException
- HTTP メソッドではなく URL による一致の場合 UnsupportedMediaTypeStatusException
- URL および HTTP メソッドによる一致はあるが、消費可能なメディア型による一致がない場合 NotAcceptableStatusException
- URL および HTTP メソッドによる一致はあるが、生成可能なメディア型による一致はない場合 ServerWebInputException
- クエリパラメーター条件ではなく、URL および HTTP メソッドによる一致がある場合 ExceptionSE
- エラーステータスコードに変換できる詳細を提供します