public class MessageInterceptorRegistration
extends java.lang.Object
MessageInterceptor.| Constructor and Description |
|---|
MessageInterceptorRegistration(java.util.regex.Pattern channelNamePattern,
MessageInterceptor interceptor,
java.util.Set<EndpointType> enabledEndpointTypes) |
| Modifier and Type | Method and Description |
|---|---|
static MessageInterceptorRegistration |
allChannelsWith(MessageInterceptor interceptor)
Creates a MessageInterceptorRegistration that is used to register a
MessageInterceptor in all channels,
at the sender-side as well as at the
receiver-side. |
boolean |
equals(java.lang.Object o) |
MessageInterceptor |
getInterceptor()
Returns the
MessageInterceptor of the registration. |
int |
hashCode() |
boolean |
isEnabledFor(java.lang.String channelNamePattern,
EndpointType endpointType)
Returns
true if the registration is matching the given channelName and EndpointType,
false otherwise. |
static MessageInterceptorRegistration |
matchingChannelsWith(java.lang.String channelNamePattern,
MessageInterceptor interceptor)
Creates a MessageInterceptorRegistration that is used to register a
MessageInterceptor in all channels
with names matching the channelNamePattern,
at the sender-side as well as at the
receiver-side. |
static MessageInterceptorRegistration |
matchingReceiverChannelsWith(java.lang.String channelNamePattern,
MessageInterceptor interceptor)
Creates a MessageInterceptorRegistration that is used to register a
MessageInterceptor at the
receiver-side of all channels
with names matching the channelNamePattern. |
static MessageInterceptorRegistration |
matchingSenderChannelsWith(java.lang.String channelNamePattern,
MessageInterceptor interceptor)
Creates a MessageInterceptorRegistration that is used to register a
MessageInterceptor at the
sender-side of all channels
with names matching the channelNamePattern. |
static MessageInterceptorRegistration |
receiverChannelsWith(MessageInterceptor interceptor)
Creates a MessageInterceptorRegistration that is used to register a
MessageInterceptor at the
receiver-side of all channels. |
static MessageInterceptorRegistration |
senderChannelsWith(MessageInterceptor interceptor)
Creates a MessageInterceptorRegistration that is used to register a
MessageInterceptor at the
sender-side of all channels. |
java.lang.String |
toString() |
public MessageInterceptorRegistration(java.util.regex.Pattern channelNamePattern,
MessageInterceptor interceptor,
java.util.Set<EndpointType> enabledEndpointTypes)
public static MessageInterceptorRegistration allChannelsWith(@Nonnull MessageInterceptor interceptor)
MessageInterceptor in all channels,
at the sender-side as well as at the
receiver-side.interceptor - the MessageInterceptor used to intercept messagespublic static MessageInterceptorRegistration matchingChannelsWith(@Nonnull java.lang.String channelNamePattern, @Nonnull MessageInterceptor interceptor)
MessageInterceptor in all channels
with names matching the channelNamePattern,
at the sender-side as well as at the
receiver-side.channelNamePattern - the regexp used to match channel names. Only channels with matching names will be intercepted.interceptor - the MessageInterceptor used to intercept messagespublic static MessageInterceptorRegistration receiverChannelsWith(@Nonnull MessageInterceptor interceptor)
MessageInterceptor at the
receiver-side of all channels.interceptor - the MessageInterceptor used to intercept messagespublic static MessageInterceptorRegistration matchingReceiverChannelsWith(@Nonnull java.lang.String channelNamePattern, @Nonnull MessageInterceptor interceptor)
MessageInterceptor at the
receiver-side of all channels
with names matching the channelNamePattern.channelNamePattern - the regexp used to match channel names. Only channels with matching names will be intercepted.interceptor - the MessageInterceptor used to intercept messagespublic static MessageInterceptorRegistration senderChannelsWith(@Nonnull MessageInterceptor interceptor)
MessageInterceptor at the
sender-side of all channels.interceptor - the MessageInterceptor used to intercept messagespublic static MessageInterceptorRegistration matchingSenderChannelsWith(@Nonnull java.lang.String channelNamePattern, @Nonnull MessageInterceptor interceptor)
MessageInterceptor at the
sender-side of all channels
with names matching the channelNamePattern.channelNamePattern - the regexp used to match channel names. Only channels with matching names will be intercepted.interceptor - the MessageInterceptor used to intercept messagespublic MessageInterceptor getInterceptor()
MessageInterceptor of the registration.public boolean isEnabledFor(java.lang.String channelNamePattern,
EndpointType endpointType)
true if the registration is matching the given channelName and EndpointType,
false otherwise.channelNamePattern - the regexp used to match channel namesendpointType - the EndpointType of the channelpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object