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 |
---|---|
ConsumesRequestCondition |
ConsumesRequestCondition.combine(ConsumesRequestCondition other)
Returns the "other" instance if it has any expressions; returns "this"
instance otherwise.
|
ConsumesRequestCondition |
ConsumesRequestCondition.getMatchingCondition(javax.servlet.http.HttpServletRequest request)
Checks if any of the contained media type expressions match the given
request 'Content-Type' header and returns an instance that is guaranteed
to contain matching expressions only.
|
Modifier and Type | Method and Description |
---|---|
ConsumesRequestCondition |
ConsumesRequestCondition.combine(ConsumesRequestCondition other)
Returns the "other" instance if it has any expressions; returns "this"
instance otherwise.
|
int |
ConsumesRequestCondition.compareTo(ConsumesRequestCondition other,
javax.servlet.http.HttpServletRequest request)
Returns:
0 if the two conditions have the same number of expressions
Less than 0 if "this" has more or more specific media type expressions
Greater than 0 if "other" has more or more specific media type expressions
It is assumed that both instances have been obtained via
getMatchingCondition(HttpServletRequest) and each instance contains
the matching consumable media type expression only or is otherwise empty. |
Modifier and Type | Method and Description |
---|---|
ConsumesRequestCondition |
RequestMappingInfo.getConsumesCondition()
Returns the "consumes" condition of this
RequestMappingInfo ;
or instance with 0 consumes 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.