public class MessageInterceptorRegistration
extends java.lang.Object
implements org.springframework.core.Ordered
MessageInterceptor.| Constructor and Description |
|---|
MessageInterceptorRegistration(java.util.regex.Pattern channelNamePattern,
MessageInterceptor interceptor,
java.util.Set<EndpointType> enabledEndpointTypes,
int order) |
| 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. |
static MessageInterceptorRegistration |
allChannelsWith(MessageInterceptor interceptor,
int order)
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 |
getOrder() |
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 |
matchingChannelsWith(java.lang.String channelNamePattern,
MessageInterceptor interceptor,
int order)
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 |
matchingReceiverChannelsWith(java.lang.String channelNamePattern,
MessageInterceptor interceptor,
int order)
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 |
matchingSenderChannelsWith(java.lang.String channelNamePattern,
MessageInterceptor interceptor,
int order)
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 |
receiverChannelsWith(MessageInterceptor interceptor,
int order)
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. |
static MessageInterceptorRegistration |
senderChannelsWith(MessageInterceptor interceptor,
int order)
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,
int order)
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 allChannelsWith(@Nonnull MessageInterceptor interceptor, int order)
MessageInterceptor in all channels,
at the sender-side as well as at the
receiver-side.interceptor - the MessageInterceptor used to intercept messagesorder - the order of the interceptor. Highest precedence interceptors (lowest order value)
will be executed last.public 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 matchingChannelsWith(@Nonnull java.lang.String channelNamePattern, @Nonnull MessageInterceptor interceptor, int order)
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 messagesorder - the order of the interceptor. Highest precedence interceptors (lowest order value)
will be executed last.public static MessageInterceptorRegistration receiverChannelsWith(@Nonnull MessageInterceptor interceptor)
MessageInterceptor at the
receiver-side of all channels.interceptor - the MessageInterceptor used to intercept messagespublic static MessageInterceptorRegistration receiverChannelsWith(@Nonnull MessageInterceptor interceptor, int order)
MessageInterceptor at the
receiver-side of all channels.interceptor - the MessageInterceptor used to intercept messagesorder - the order of the interceptor. Highest precedence interceptors (lowest order value)
will be executed last.public 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 matchingReceiverChannelsWith(@Nonnull java.lang.String channelNamePattern, @Nonnull MessageInterceptor interceptor, int order)
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 messagesorder - the order of the interceptor. Highest precedence interceptors (lowest order value)
will be executed last.public static MessageInterceptorRegistration senderChannelsWith(@Nonnull MessageInterceptor interceptor)
MessageInterceptor at the
sender-side of all channels.interceptor - the MessageInterceptor used to intercept messagespublic static MessageInterceptorRegistration senderChannelsWith(@Nonnull MessageInterceptor interceptor, int order)
MessageInterceptor at the
sender-side of all channels.interceptor - the MessageInterceptor used to intercept messagesorder - the order of the interceptor. Highest precedence interceptors (lowest order value)
will be executed last.public 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 static MessageInterceptorRegistration matchingSenderChannelsWith(@Nonnull java.lang.String channelNamePattern, @Nonnull MessageInterceptor interceptor, int order)
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 messagesorder - the order of the interceptor. Highest precedence interceptors (lowest order value)
will be executed last.public 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 int getOrder()
getOrder in interface org.springframework.core.Orderedpublic 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