class RequestMappingInfo : RequestCondition<RequestMappingInfo>
A RequestCondition that consists of the following other conditions:
RequestCondition (optional, custom request condition) Author
Arjen Poutsma
Author
Rossen Stoyanchev
Since
3.1
RequestMappingInfo(name: String, patterns: PatternsRequestCondition, methods: RequestMethodsRequestCondition, params: ParamsRequestCondition, headers: HeadersRequestCondition, consumes: ConsumesRequestCondition, produces: ProducesRequestCondition, custom: RequestCondition<*>)RequestMappingInfo(patterns: PatternsRequestCondition, methods: RequestMethodsRequestCondition, params: ParamsRequestCondition, headers: HeadersRequestCondition, consumes: ConsumesRequestCondition, produces: ProducesRequestCondition, custom: RequestCondition<*>)
Creates a new instance with the given request conditions. RequestMappingInfo(info: RequestMappingInfo, customRequestCondition: RequestCondition<*>)
Re-create a RequestMappingInfo with the given custom request condition. |
fun combine(other: RequestMappingInfo): RequestMappingInfo
Combine "this" request mapping info (i.e. the current instance) with another request mapping info instance. Example: combine type- and method-level request mappings. |
|
fun compareTo(other: RequestMappingInfo, request: HttpServletRequest): Int
Compares "this" info (i.e. the current instance) with another info in the context of a request. Note: It is assumed both instances have been obtained via |
|
fun equals(other: Any?): Boolean |
|
fun getConsumesCondition(): ConsumesRequestCondition
Return the "consumes" condition of this RequestMappingInfo; or instance with 0 consumes expressions (never |
|
fun getCustomCondition(): RequestCondition<*>
Return the "custom" condition of this RequestMappingInfo, or |
|
fun getHeadersCondition(): HeadersRequestCondition
Return the "headers" condition of this RequestMappingInfo; or instance with 0 header expressions (never |
|
fun getMatchingCondition(request: HttpServletRequest): RequestMappingInfo
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. 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. |
|
fun getMethodsCondition(): RequestMethodsRequestCondition
Return the HTTP request methods of this RequestMappingInfo; or instance with 0 request methods (never |
|
fun getName(): String
Return the name for this mapping, or |
|
fun getParamsCondition(): ParamsRequestCondition
Return the "parameters" condition of this RequestMappingInfo; or instance with 0 parameter expressions (never |
|
fun getPatternsCondition(): PatternsRequestCondition
Return the URL patterns of this RequestMappingInfo; or instance with 0 patterns (never |
|
fun getProducesCondition(): ProducesRequestCondition
Return the "produces" condition of this RequestMappingInfo; or instance with 0 produces expressions (never |
|
fun hashCode(): Int |
|
static fun paths(vararg paths: String): Builder
Create a new |
|
fun toString(): String |