Uses of Interface
org.springframework.web.servlet.mvc.condition.RequestCondition
Package
Description
Common MVC logic for matching incoming requests based on conditions.
Servlet-based infrastructure for handler method processing,
building on the
org.springframework.web.method
package.MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.-
Uses of RequestCondition in org.springframework.web.servlet.mvc.condition
Modifier and TypeClassDescriptionclass
AbstractRequestCondition<T extends AbstractRequestCondition<T>>
A base class forRequestCondition
types providing implementations ofAbstractRequestCondition.equals(Object)
,AbstractRequestCondition.hashCode()
, andAbstractRequestCondition.toString()
.class
Implements theRequestCondition
contract by delegating to multipleRequestCondition
types and using a logical conjunction (' && '
) to ensure all conditions match a given request.final class
A logical disjunction (' || ') request condition to match a request's 'Content-Type' header to a list of media type expressions.final class
A logical conjunction (' && '
) request condition that matches a request against a set of header expressions with syntax defined inRequestMapping.headers()
.final class
A logical conjunction (' && '
) request condition that matches a request against a set parameter expressions with syntax defined inRequestMapping.params()
.final class
A logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.class
A logical disjunction (' || ') request condition that matches a request against a set of URL path patterns.final class
A logical disjunction (' || ') request condition to match a request's 'Accept' header to a list of media type expressions.final class
A holder for aRequestCondition
useful when the type of the request condition is not known ahead of time, e.g.final class
A logical disjunction (' || ') request condition that matches a request against a set ofRequestMethods
.Modifier and TypeMethodDescriptionRequestConditionHolder.getCondition()
Return the held request condition, ornull
if not holding one.Modifier and TypeMethodDescriptionList<RequestCondition<?>>
CompositeRequestCondition.getConditions()
Return the underlying conditions (possibly empty but nevernull
).ModifierConstructorDescriptionCompositeRequestCondition
(RequestCondition<?>... requestConditions) Create an instance with 0 or moreRequestCondition
types.RequestConditionHolder
(RequestCondition<?> requestCondition) Create a new holder to wrap the given request condition. -
Uses of RequestCondition in org.springframework.web.servlet.mvc.method
Modifier and TypeMethodDescription<T> RequestCondition<T>
RequestMappingInfo.getActivePatternsCondition()
Returns eitherRequestMappingInfo.getPathPatternsCondition()
orRequestMappingInfo.getPatternsCondition()
depending on which is not null.RequestMappingInfo.getCustomCondition()
Return the "custom" condition of thisRequestMappingInfo
, ornull
.Modifier and TypeMethodDescriptionRequestMappingInfo.addCustomCondition
(RequestCondition<?> customCondition) Create a new instance based on the current one, also adding the given custom condition.RequestMappingInfo.Builder.customCondition
(RequestCondition<?> condition) Set a custom condition to use.ModifierConstructorDescriptionRequestMappingInfo
(String name, PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom) Deprecated.RequestMappingInfo
(PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom) Deprecated.as of 5.3 in favor usingRequestMappingInfo.Builder
viaRequestMappingInfo.paths(String...)
.RequestMappingInfo
(RequestMappingInfo info, RequestCondition<?> customRequestCondition) Deprecated.since 5.3 in favor of usingRequestMappingInfo.addCustomCondition(RequestCondition)
. -
Uses of RequestCondition in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected 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 TypeMethodDescriptionprotected RequestMappingInfo
RequestMappingHandlerMapping.createRequestMappingInfo
(RequestMapping requestMapping, RequestCondition<?> customCondition) Create aRequestMappingInfo
from the supplied@RequestMapping
annotation, meta-annotation, or synthesized result of merging annotation attributes within an annotation hierarchy.protected RequestMappingInfo
RequestMappingHandlerMapping.createRequestMappingInfo
(HttpExchange httpExchange, RequestCondition<?> customCondition) Create aRequestMappingInfo
from the supplied@HttpExchange
annotation, meta-annotation, or synthesized result of merging annotation attributes within an annotation hierarchy.
RequestMappingInfo.Builder
viaRequestMappingInfo.paths(String...)
.