public abstract class AbstractRequestCondition<T extends AbstractRequestCondition<T>> extends Object implements RequestCondition<T>
RequestCondition
types providing implementations of
equals(Object)
, hashCode()
, and toString()
.Constructor and Description |
---|
AbstractRequestCondition() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
combine, compareTo, getMatchingCondition
public boolean isEmpty()
true
if empty; false
otherwiseprotected abstract Collection<?> getContent()
For example URL patterns, HTTP request methods, param expressions, etc.
null
)protected abstract String getToStringInfix()
For example " || "
for URL patterns or " && "
for param expressions.