RequestMappingInfo defines
the mapping between a request and a handler method.
| Modifier and Type | Class and Description |
|---|---|
| private static class | RequestMappingInfoHandlerMapping.
Default handler for HTTP OPTIONS. |
| private static class | RequestMappingInfoHandlerMapping.
Aggregate all partial matches and expose methods checking across them. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Method |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| private void | extractMatchDetails(PathPatternsRequestCondition condition, String lookupPath, HttpServletRequest request)
|
| private void | extractMatchDetails(PatternsRequestCondition condition, String lookupPath, HttpServletRequest request)
|
| private Map | |
| protected Set | getDirectPaths(RequestMappingInfo info)
Overrides org. Return the request mapping paths that are not patterns. |
| protected HandlerMethod | getHandlerInternal(HttpServletRequest
current HTTP request request)Overrides org. Look up a handler method for the given request. |
| protected Comparator | getMappingComparator(final HttpServletRequest
the current request request)Implements abstract org. Provide a Comparator to sort RequestMappingInfos matched to a request. |
| protected Set | getMappingPathPatterns(RequestMappingInfo info)
Overrides org. Get the URL path patterns associated with the supplied |
| protected RequestMappingInfo | Returns: an info in case of a match; ornull otherwise.the mapping to get a match for info, HttpServletRequest the current HTTP servlet request request)Implements abstract org. Check if the given RequestMappingInfo matches the current request and return a (potentially new) instance with conditions that match the current request -- for example with a subset of URL patterns. |
| protected void | handleMatch(RequestMappingInfo
the matching mapping info, String mapping lookup path within the current servlet mapping lookupPath, HttpServletRequest the current request request)Overrides org. Expose URI template variables, matrix variables, and producible media types in the request. |
| protected HandlerMethod | handleNoMatch(Set<RequestMappingInfo>
all registered mappings infos, String mapping lookup path within the current servlet mapping lookupPath, HttpServletRequest the current request request)Overrides org. Iterate all RequestMappingInfo's once again, look if any match by URL at least and raise exceptions according to what doesn't match. |
| HTTP_OPTIONS_HANDLE_METHOD | back to summary |
|---|---|
| private static final Method HTTP_OPTIONS_HANDLE_METHOD | |
| RequestMappingInfoHandlerMapping | back to summary |
|---|---|
| protected RequestMappingInfoHandlerMapping() | |
| extractMatchDetails | back to summary |
|---|---|
| private void extractMatchDetails(PathPatternsRequestCondition condition, String lookupPath, HttpServletRequest request) | |
| extractMatchDetails | back to summary |
|---|---|
| private void extractMatchDetails(PatternsRequestCondition condition, String lookupPath, HttpServletRequest request) | |
| extractMatrixVariables | back to summary |
|---|---|
| private Map | |
| getDirectPaths | back to summary |
|---|---|
| protected Set Overrides org. Doc from org. Return the request mapping paths that are not patterns.
| |
| getHandlerInternal | back to summary |
|---|---|
| protected HandlerMethod getHandlerInternal(HttpServletRequest request) throws Exception Overrides org. Doc from org. Look up a handler method for the given request.
| |
| getMappingComparator | back to summary |
|---|---|
| protected Comparator Implements abstract org. Provide a Comparator to sort RequestMappingInfos matched to a request.
| |
| getMappingPathPatterns | back to summary |
|---|---|
| protected Set Overrides org. Get the URL path patterns associated with the supplied
| |
| getMatchingMapping | back to summary |
|---|---|
| protected RequestMappingInfo getMatchingMapping(RequestMappingInfo info, HttpServletRequest request) Implements abstract org. Check if the given RequestMappingInfo matches the current request and return a (potentially new) instance with conditions that match the current request -- for example with a subset of URL patterns.
| |
| handleMatch | back to summary |
|---|---|
| protected void handleMatch(RequestMappingInfo info, String lookupPath, HttpServletRequest request) Overrides org. Expose URI template variables, matrix variables, and producible media types in the request.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final HttpHeaders |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public HttpHeaders | |
| private static Set |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| HttpOptionsHandler | back to summary |
|---|---|
| public HttpOptionsHandler(Set<String> declaredMethods, Set<MediaType> acceptPatch) | |
| handle | back to summary |
|---|---|
public HttpHeaders handle()
| |
| initAllowedHttpMethods | back to summary |
|---|---|
| private static Set | |
| Modifier and Type | Class and Description |
|---|---|
| private static class | RequestMappingInfoHandlerMapping.
Container for a RequestMappingInfo that matches the URL path at least. |
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Set | |
| public Set | getConsumableMediaTypes()
Return declared "consumable" types but only among those that also match the "methods" condition. |
| public Set | getConsumablePatchMediaTypes()
Return declared "consumable" types but only among those that have PATCH specified, or that have no methods at all. |
| public List | getParamConditions()
Return declared "params" conditions but only among those that also match the "methods", "consumes", and "params" conditions. |
| public Set | getProducibleMediaTypes()
Return declared "producible" types but only among those that also match the "methods" and "consumes" conditions. |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean |
| partialMatches | back to summary |
|---|---|
| private final List<RequestMappingInfoHandlerMapping. | |
| PartialMatchHelper | back to summary |
|---|---|
| pack-priv PartialMatchHelper(Set<RequestMappingInfo> infos, HttpServletRequest request) | |
| getAllowedMethods | back to summary |
|---|---|
| public Set Return declared HTTP methods. | |
| getConsumableMediaTypes | back to summary |
|---|---|
| public Set Return declared "consumable" types but only among those that also match the "methods" condition. | |
| getConsumablePatchMediaTypes | back to summary |
|---|---|
| public Set Return declared "consumable" types but only among those that have PATCH specified, or that have no methods at all. | |
| getParamConditions | back to summary |
|---|---|
| public List Return declared "params" conditions but only among those that also match the "methods", "consumes", and "params" conditions. | |
| getProducibleMediaTypes | back to summary |
|---|---|
| public Set Return declared "producible" types but only among those that also match the "methods" and "consumes" conditions. | |
| hasConsumesMismatch | back to summary |
|---|---|
| public boolean hasConsumesMismatch() Any partial matches for "methods" and "consumes"? | |
| hasMethodsMismatch | back to summary |
|---|---|
| public boolean hasMethodsMismatch() Any partial matches for "methods"? | |
| hasParamsMismatch | back to summary |
|---|---|
| public boolean hasParamsMismatch() Any partial matches for "methods", "consumes", "produces", and "params"? | |
| hasProducesMismatch | back to summary |
|---|---|
| public boolean hasProducesMismatch() Any partial matches for "methods", "consumes", and "produces"? | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Whether there are any partial matches. | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final RequestMappingInfo | |
| private final boolean | |
| private final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public | PartialMatch(RequestMappingInfo
the RequestMappingInfo that matches the URL path. info, HttpServletRequest the current request request)Create a new |
| Modifier and Type | Method and Description |
|---|---|
| public RequestMappingInfo | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public String |
| consumesMatch | back to summary |
|---|---|
| private final boolean consumesMatch | |
| info | back to summary |
|---|---|
| private final RequestMappingInfo info | |
| methodsMatch | back to summary |
|---|---|
| private final boolean methodsMatch | |
| paramsMatch | back to summary |
|---|---|
| private final boolean paramsMatch | |
| producesMatch | back to summary |
|---|---|
| private final boolean producesMatch | |
| PartialMatch | back to summary |
|---|---|
| public PartialMatch(RequestMappingInfo info, HttpServletRequest request) Create a new
| |
| getInfo | back to summary |
|---|---|
| public RequestMappingInfo getInfo() | |
| hasConsumesMatch | back to summary |
|---|---|
| public boolean hasConsumesMatch() | |
| hasMethodsMatch | back to summary |
|---|---|
| public boolean hasMethodsMatch() | |
| hasParamsMatch | back to summary |
|---|---|
| public boolean hasParamsMatch() | |
| hasProducesMatch | back to summary |
|---|---|
| public boolean hasProducesMatch() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |