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. |
org.springframework.web.servlet.mvc.method.annotation |
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation package. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractRequestCondition<T extends AbstractRequestCondition<T>>
A base class for
RequestCondition types providing implementations of
AbstractRequestCondition.equals(Object) , AbstractRequestCondition.hashCode() , and AbstractRequestCondition.toString() . |
class |
CompositeRequestCondition
Implements the
RequestCondition contract by delegating to multiple
RequestCondition types and using a logical conjunction (' && ') to
ensure all conditions match a given request. |
class |
ConsumesRequestCondition
A logical disjunction (' || ') request condition to match a request's
'Content-Type' header to a list of media type expressions.
|
class |
HeadersRequestCondition
A logical conjunction (' && ') request condition that matches a request against
a set of header expressions with syntax defined in
RequestMapping.headers() . |
class |
ParamsRequestCondition
A logical conjunction (' && ') request condition that matches a request against
a set parameter expressions with syntax defined in
RequestMapping.params() . |
class |
PatternsRequestCondition
A logical disjunction (' || ') request condition that matches a request
against a set of URL path patterns.
|
class |
ProducesRequestCondition
A logical disjunction (' || ') request condition to match a request's 'Accept' header
to a list of media type expressions.
|
class |
RequestConditionHolder
A holder for a
RequestCondition useful when the type of the request
condition is not known ahead of time, e.g. |
class |
RequestMethodsRequestCondition
A logical disjunction (' || ') request condition that matches a request
against a set of
RequestMethods . |
Modifier and Type | Method and Description |
---|---|
RequestCondition<?> |
RequestConditionHolder.getCondition()
Return the held request condition, or
null if not holding one. |
Modifier and Type | Method and Description |
---|---|
List<RequestCondition<?>> |
CompositeRequestCondition.getConditions()
Return the underlying conditions (possibly empty but never
null ). |
Constructor and Description |
---|
CompositeRequestCondition(RequestCondition<?>... requestConditions)
Create an instance with 0 or more
RequestCondition types. |
RequestConditionHolder(RequestCondition<?> requestCondition)
Create a new holder to wrap the given request condition.
|
Modifier and Type | Class and Description |
---|---|
class |
RequestMappingInfo
Request mapping information.
|
Modifier and Type | Method and Description |
---|---|
RequestCondition<?> |
RequestMappingInfo.getCustomCondition()
Return the "custom" condition of this
RequestMappingInfo , or null . |
Modifier and Type | Method and Description |
---|---|
RequestMappingInfo.Builder |
RequestMappingInfo.Builder.customCondition(RequestCondition<?> condition)
Set a custom condition to use.
|
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(String name,
PatternsRequestCondition patterns,
RequestMethodsRequestCondition methods,
ParamsRequestCondition params,
HeadersRequestCondition headers,
ConsumesRequestCondition consumes,
ProducesRequestCondition produces,
RequestCondition<?> custom) |
Modifier and Type | Method and Description |
---|---|
protected RequestCondition<?> |
RequestMappingHandlerMapping.getCustomMethodCondition(Method method)
Provide a custom method-level request condition.
|
protected RequestCondition<?> |
RequestMappingHandlerMapping.getCustomTypeCondition(Class<?> handlerType)
Provide a custom type-level request condition.
|
Modifier and Type | Method and Description |
---|---|
protected RequestMappingInfo |
RequestMappingHandlerMapping.createRequestMappingInfo(RequestMapping requestMapping,
RequestCondition<?> customCondition)
Create a
RequestMappingInfo from the supplied
@RequestMapping annotation, which is either
a directly declared annotation, a meta-annotation, or the synthesized
result of merging annotation attributes within an annotation hierarchy. |