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 |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Set | getDirectPaths(RequestMappingInfo info)
Overrides org. Return the request mapping paths that are not patterns. |
| public Mono | getHandlerInternal(ServerWebExchange
the current exchange exchange)Overrides org. Look up a handler method for the given request. |
| protected Comparator | getMappingComparator(final ServerWebExchange
the current exchange exchange)Implements abstract org. Provide a Comparator to sort RequestMappingInfos matched to a request. |
| protected RequestMappingInfo | Returns: an info in case of a match; ornull otherwise.the mapping to get a match for info, ServerWebExchange the current exchange exchange)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, HandlerMethod the matching method handlerMethod, ServerWebExchange the current exchange exchange)Overrides org. Expose URI template variables, matrix variables, and producible media types in the request. |
| protected HandlerMethod | handleNoMatch(Set<RequestMappingInfo>
all registered mappings infos, ServerWebExchange the current exchange exchange)Overrides org. Iterate all RequestMappingInfos once again, look if any match by URL at least and raise exceptions accordingly. |
| HTTP_OPTIONS_HANDLE_METHOD | back to summary |
|---|---|
| private static final Method HTTP_OPTIONS_HANDLE_METHOD | |
| RequestMappingInfoHandlerMapping | back to summary |
|---|---|
| public RequestMappingInfoHandlerMapping() | |
| getDirectPaths | back to summary |
|---|---|
| protected Set Overrides org. Doc from org. Return the request mapping paths that are not patterns.
| |
| getHandlerInternal | back to summary |
|---|---|
| public Mono 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.
| |
| getMatchingMapping | back to summary |
|---|---|
| protected RequestMappingInfo getMatchingMapping(RequestMappingInfo info, ServerWebExchange exchange) 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, HandlerMethod handlerMethod, ServerWebExchange exchange) Overrides org. Expose URI template variables, matrix variables, and producible media types in the request.
| |
| handleNoMatch | back to summary |
|---|---|
| protected HandlerMethod handleNoMatch(Set<RequestMappingInfo> infos, ServerWebExchange exchange) throws Exception Overrides org. Iterate all RequestMappingInfos once again, look if any match by URL at least and raise exceptions accordingly.
| |
| 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<HttpMethod> 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, ServerWebExchange exchange) | |
| 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, ServerWebExchange the current exchange exchange)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, ServerWebExchange exchange) 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- | |