Package | Description |
---|---|
org.springframework.web.servlet.mvc.condition |
Common MVC logic for matching incoming requests based on conditions.
|
org.springframework.web.servlet.mvc.method |
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method package. |
Modifier and Type | Method and Description |
---|---|
HeadersRequestCondition |
HeadersRequestCondition.combine(HeadersRequestCondition other)
Returns a new instance with the union of the header expressions
from "this" and the "other" instance.
|
HeadersRequestCondition |
HeadersRequestCondition.getMatchingCondition(javax.servlet.http.HttpServletRequest request)
Returns "this" instance if the request matches all expressions;
or
null otherwise. |
Modifier and Type | Method and Description |
---|---|
HeadersRequestCondition |
HeadersRequestCondition.combine(HeadersRequestCondition other)
Returns a new instance with the union of the header expressions
from "this" and the "other" instance.
|
int |
HeadersRequestCondition.compareTo(HeadersRequestCondition other,
javax.servlet.http.HttpServletRequest request)
Returns:
0 if the two conditions have the same number of header expressions
Less than 0 if "this" instance has more header expressions
Greater than 0 if the "other" instance has more header expressions
It is assumed that both instances have been obtained via
getMatchingCondition(HttpServletRequest) and each instance
contains the matching header expression only or is otherwise empty. |
Modifier and Type | Method and Description |
---|---|
HeadersRequestCondition |
RequestMappingInfo.getHeadersCondition()
Returns the "headers" condition of this
RequestMappingInfo ;
or instance with 0 header expressions, never null |
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.
|
Copyright © 2015. All rights reserved.