类 AbstractRequestCondition<T extends AbstractRequestCondition<T>>
- java.lang.Object
- org.springframework.web.servlet.mvc.condition.AbstractRequestCondition<T>
- 类型参数:
T
- the type of objects that this RequestCondition can be combined with and compared to
- 所有已实现的接口:
RequestCondition<T>
- 直接已知子类:
CompositeRequestCondition
,ConsumesRequestCondition
,HeadersRequestCondition
,ParamsRequestCondition
,PatternsRequestCondition
,ProducesRequestCondition
,RequestConditionHolder
,RequestMethodsRequestCondition
public abstract class AbstractRequestCondition<T extends AbstractRequestCondition<T>> extends Object implements RequestCondition<T>
A base class forRequestCondition
types providing implementations ofequals(Object)
,hashCode()
, andtoString()
.- 从以下版本开始:
- 3.1
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 AbstractRequestCondition()
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 boolean
equals(Object other)
protected abstract Collection<?>
getContent()
Return the discrete items a request condition is composed of.protected abstract String
getToStringInfix()
The notation to use when printing discrete items of content.int
hashCode()
boolean
isEmpty()
Indicates whether this condition is empty, i.e. whether or not it contains any discrete items.String
toString()
从接口继承的方法 org.springframework.web.servlet.mvc.condition.RequestCondition
combine, compareTo, getMatchingCondition
构造器详细资料
AbstractRequestCondition
public AbstractRequestCondition()
方法详细资料
isEmpty
public boolean isEmpty()
Indicates whether this condition is empty, i.e. whether or not it contains any discrete items.- 返回:
true
if empty;false
otherwise
getContent
protected abstract Collection<?> getContent()
Return the discrete items a request condition is composed of.For example URL patterns, HTTP request methods, param expressions, etc.
- 返回:
- a collection of objects (never
null
)
getToStringInfix
protected abstract String getToStringInfix()
The notation to use when printing discrete items of content.For example
" || "
for URL patterns or" && "
for param expressions.