public abstract class RequestMappingInfoHandlerMapping extends AbstractHandlerMethodMapping<RequestMappingInfo>
RequestMappingInfo がリクエストとハンドラーメソッド間のマッピングを定義するクラスの抽象基本クラス。mappingsLoggerloggerBEST_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_ATTRIBUTEHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 修飾子 | コンストラクターと説明 |
|---|---|
protected | RequestMappingInfoHandlerMapping() |
| 修飾子と型 | メソッドと説明 |
|---|---|
protected SetSE<StringSE> | getDirectPaths(RequestMappingInfo info) パターンではないリクエストマッピングパスを返します。 |
protected HandlerMethod | getHandlerInternal(HttpServletRequestEE request) 指定されたリクエストのハンドラーメソッドを検索します。 |
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, getHandlerMethods, getHandlerMethodsForMappingName, getMappingForMethod, getNamingStrategy, handlerMethodsInitialized, hasCorsConfigurationSource, initCorsConfiguration, initHandlerMethods, isHandler, lookupHandlerMethod, processCandidateBean, registerHandlerMethod, registerMapping, setDetectHandlerMethodsInAncestorContexts, setHandlerMethodMappingNamingStrategy, setPatternParser, unregisterMappingadaptInterceptor, 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, usesPathPatternsgetServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContextgetApplicationContext, getMessageSourceAccessor, obtainApplicationContext, requiredContextClass, setApplicationContextcloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEprotected SetSE<StringSE> getMappingPathPatterns(RequestMappingInfo info)
RequestMappingInfo に関連付けられた URL パスパターンを取得します。AbstractHandlerMethodMapping<RequestMappingInfo> の getMappingPathPatterns protected SetSE<StringSE> getDirectPaths(RequestMappingInfo info)
AbstractHandlerMethodMappingAbstractHandlerMethodMapping<RequestMappingInfo> の getDirectPaths 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)@Nullable protected HandlerMethod getHandlerInternal(HttpServletRequestEE request) throws ExceptionSE
AbstractHandlerMethodMappingAbstractHandlerMethodMapping<RequestMappingInfo> の getHandlerInternal request - 現在の HTTP リクエスト null ExceptionSE - 内部エラーがある場合 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_ATTRIBUTEprotected HandlerMethod handleNoMatch(SetSE<RequestMappingInfo> infos, StringSE lookupPath, HttpServletRequestEE request) throws ServletExceptionEE
AbstractHandlerMethodMapping<RequestMappingInfo> の handleNoMatch infos - 登録済みのすべてのマッピング lookupPath - 現在のサーブレットマッピング内のマッピングルックアップパス request - 現在のリクエスト HttpRequestMethodNotSupportedException - HTTP メソッドではなく URL で一致する場合 HttpMediaTypeNotAcceptableException - 消耗品 / 生産可能なメディア型ではなく、URL で一致する場合 ServletExceptionEE - エラーの場合