Class AbstractMessageCondition<T extends AbstractMessageCondition<T>>
java.lang.Object
org.springframework.messaging.handler.AbstractMessageCondition<T>
- Type Parameters:
T
- the kind of condition that this condition can be combined with or compared to
- All Implemented Interfaces:
MessageCondition<T>
- Direct Known Subclasses:
DestinationPatternsMessageCondition
,RSocketFrameTypeMessageCondition
,SimpMessageTypeMessageCondition
public abstract class AbstractMessageCondition<T extends AbstractMessageCondition<T>>
extends Object
implements MessageCondition<T>
Base class for
MessageCondition's
that pre-declares abstract methods
getContent()
and getToStringInfix()
in order to provide
implementations of equals(Object)
, hashCode()
, and
toString()
.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
protected abstract Collection<?>
Return the collection of objects the message condition is composed of (for example, destination patterns), nevernull
.protected abstract String
The notation to use when printing discrete items of content.int
hashCode()
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 Details
-
AbstractMessageCondition
public AbstractMessageCondition()
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
getContent
Return the collection of objects the message condition is composed of (for example, destination patterns), nevernull
. -
getToStringInfix
The notation to use when printing discrete items of content. For example " || " for URL patterns or " && " for param expressions.
-