Class AbstractMessageCondition<T extends AbstractMessageCondition<T>>
- java.lang.Object
- org.springframework.messaging.handler.AbstractMessageCondition<T>
- All Implemented Interfaces:
MessageCondition<T>
- Direct Known Subclasses:
DestinationPatternsMessageCondition
,SimpMessageTypeMessageCondition
public abstract class AbstractMessageCondition<T extends AbstractMessageCondition<T>> extends Object implements MessageCondition<T>
A base class forMessageCondition
types providing implementations ofequals(Object)
,hashCode()
, andtoString()
.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
Constructor Summary
Constructors Constructor Description AbstractMessageCondition()
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
protected abstract Collection<?>
getContent()
Return the collection of objects the message condition is composed of (e.g.protected abstract String
getToStringInfix()
The notation to use when printing discrete items of content.int
hashCode()
String
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.messaging.handler.MessageCondition
combine, compareTo, getMatchingCondition
Constructor Detail
AbstractMessageCondition
public AbstractMessageCondition()
Method Detail
getContent
protected abstract Collection<?> getContent()
Return the collection of objects the message condition is composed of (e.g. destination patterns), nevernull
.
getToStringInfix
protected abstract String getToStringInfix()
The notation to use when printing discrete items of content. For example " || " for URL patterns or " && " for param expressions.