public final class RequestMappingInfo extends java.lang.Object implements RequestCondition<RequestMappingInfo>
RequestCondition that consists of the following other conditions:
 PatternsRequestCondition
 RequestMethodsRequestCondition
 ParamsRequestCondition
 HeadersRequestCondition
 ConsumesRequestCondition
 ProducesRequestCondition
 RequestCondition (optional, custom request condition)
 | Modifier and Type | Class and Description | 
|---|---|
| static interface  | RequestMappingInfo.BuilderDefines a builder for creating a RequestMappingInfo. | 
| static class  | RequestMappingInfo.BuilderConfigurationContainer for configuration options used for request mapping purposes. | 
| Constructor and Description | 
|---|
| RequestMappingInfo(PatternsRequestCondition patterns,
                  RequestMethodsRequestCondition methods,
                  ParamsRequestCondition params,
                  HeadersRequestCondition headers,
                  ConsumesRequestCondition consumes,
                  ProducesRequestCondition produces,
                  RequestCondition<?> custom)Creates a new instance with the given request conditions. | 
| RequestMappingInfo(RequestMappingInfo info,
                  RequestCondition<?> customRequestCondition)Re-create a RequestMappingInfo with the given custom request condition. | 
| RequestMappingInfo(java.lang.String name,
                  PatternsRequestCondition patterns,
                  RequestMethodsRequestCondition methods,
                  ParamsRequestCondition params,
                  HeadersRequestCondition headers,
                  ConsumesRequestCondition consumes,
                  ProducesRequestCondition produces,
                  RequestCondition<?> custom) | 
| Modifier and Type | Method and Description | 
|---|---|
| RequestMappingInfo | combine(RequestMappingInfo other)Combine "this" request mapping info (i.e. | 
| int | compareTo(RequestMappingInfo other,
         HttpServletRequest request)Compares "this" info (i.e. | 
| boolean | equals(java.lang.Object other) | 
| ConsumesRequestCondition | getConsumesCondition()Return the "consumes" condition of this  RequestMappingInfo;
 or instance with 0 consumes expressions (nevernull). | 
| RequestCondition<?> | getCustomCondition()Return the "custom" condition of this  RequestMappingInfo, ornull. | 
| HeadersRequestCondition | getHeadersCondition()Return the "headers" condition of this  RequestMappingInfo;
 or instance with 0 header expressions (nevernull). | 
| RequestMappingInfo | getMatchingCondition(HttpServletRequest request)Checks if all conditions in this request mapping info match the provided request and returns
 a potentially new request mapping info with conditions tailored to the current request. | 
| RequestMethodsRequestCondition | getMethodsCondition()Return the HTTP request methods of this  RequestMappingInfo;
 or instance with 0 request methods (nevernull). | 
| java.lang.String | getName()Return the name for this mapping, or  null. | 
| ParamsRequestCondition | getParamsCondition()Return the "parameters" condition of this  RequestMappingInfo;
 or instance with 0 parameter expressions (nevernull). | 
| PatternsRequestCondition | getPatternsCondition()Return the URL patterns of this  RequestMappingInfo;
 or instance with 0 patterns (nevernull). | 
| ProducesRequestCondition | getProducesCondition()Return the "produces" condition of this  RequestMappingInfo;
 or instance with 0 produces expressions (nevernull). | 
| int | hashCode() | 
| static RequestMappingInfo.Builder | paths(java.lang.String... paths)Create a new  RequestMappingInfo.Builderwith the given paths. | 
| java.lang.String | toString() | 
public RequestMappingInfo(java.lang.String name,
                          PatternsRequestCondition patterns,
                          RequestMethodsRequestCondition methods,
                          ParamsRequestCondition params,
                          HeadersRequestCondition headers,
                          ConsumesRequestCondition consumes,
                          ProducesRequestCondition produces,
                          RequestCondition<?> custom)
public RequestMappingInfo(PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom)
public RequestMappingInfo(RequestMappingInfo info, RequestCondition<?> customRequestCondition)
public java.lang.String getName()
null.public PatternsRequestCondition getPatternsCondition()
RequestMappingInfo;
 or instance with 0 patterns (never null).public RequestMethodsRequestCondition getMethodsCondition()
RequestMappingInfo;
 or instance with 0 request methods (never null).public ParamsRequestCondition getParamsCondition()
RequestMappingInfo;
 or instance with 0 parameter expressions (never null).public HeadersRequestCondition getHeadersCondition()
RequestMappingInfo;
 or instance with 0 header expressions (never null).public ConsumesRequestCondition getConsumesCondition()
RequestMappingInfo;
 or instance with 0 consumes expressions (never null).public ProducesRequestCondition getProducesCondition()
RequestMappingInfo;
 or instance with 0 produces expressions (never null).public RequestCondition<?> getCustomCondition()
RequestMappingInfo, or null.public RequestMappingInfo combine(RequestMappingInfo other)
Example: combine type- and method-level request mappings.
combine in interface RequestCondition<RequestMappingInfo>other - the condition to combine with.nullpublic RequestMappingInfo getMatchingCondition(HttpServletRequest request)
For example the returned instance may contain the subset of URL patterns that match to the current request, sorted with best matching patterns on top.
getMatchingCondition in interface RequestCondition<RequestMappingInfo>null otherwisepublic int compareTo(RequestMappingInfo other, HttpServletRequest request)
Note: It is assumed both instances have been obtained via
 getMatchingCondition(HttpServletRequest) to ensure they have conditions with
 content relevant to current request.
compareTo in interface RequestCondition<RequestMappingInfo>public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic static RequestMappingInfo.Builder paths(java.lang.String... paths)
RequestMappingInfo.Builder with the given paths.paths - the paths to use