Package | Description |
---|---|
org.springframework.jms.core |
Core package of the JMS support.
|
org.springframework.jms.listener.adapter |
Message listener adapter mechanism that delegates to target listener
methods, converting messages to appropriate message content types
(such as String or byte array) that get passed into listener methods.
|
org.springframework.jms.support |
This package provides generic JMS support classes,
to be used by higher-level classes like JmsTemplate.
|
org.springframework.messaging |
Support for working with messaging APIs and protocols.
|
org.springframework.messaging.converter |
Provides support for message conversion.
|
org.springframework.messaging.core |
Defines interfaces and implementation classes for messaging templates.
|
org.springframework.messaging.handler |
Basic abstractions for working with message handler methods.
|
org.springframework.messaging.handler.annotation.support |
Support classes for working with annotated message-handling methods.
|
org.springframework.messaging.handler.invocation |
Common infrastructure for invoking message handler methods.
|
org.springframework.messaging.simp |
Generic support for SImple Messaging Protocols including protocols such as STOMP.
|
org.springframework.messaging.simp.annotation.support |
Support classes for handling messages from simple messaging protocols
(like STOMP).
|
org.springframework.messaging.simp.broker |
Provides a "simple" message broker implementation along with an abstract base
class and other supporting types such as a registry for subscriptions.
|
org.springframework.messaging.simp.stomp |
Generic support for simple messaging protocols (like STOMP).
|
org.springframework.messaging.simp.user |
Support for handling messages to "user" destinations (i.e.
|
org.springframework.messaging.support |
Provides implementations of
Message along with
a MessageBuilder and MessageHeaderAccessor for building and working with messages and
message headers, as well as various MessageChannel
implementations and channel interceptor support. |
org.springframework.messaging.tcp |
Contains abstractions and implementation classes for establishing TCP connections via
TcpOperations ,
handling messages via
TcpConnectionHandler ,
as well as sending messages via
TcpConnection . |
org.springframework.messaging.tcp.reactor |
Contains support for TCP messaging based on Reactor.
|
org.springframework.web.socket.messaging |
WebSocket integration for Spring's messaging module.
|
Modifier and Type | Method and Description |
---|---|
protected Message<?> |
JmsMessagingTemplate.convertJmsMessage(Message message) |
protected Message<?> |
JmsMessagingTemplate.doReceive(Destination destination) |
protected Message<?> |
JmsMessagingTemplate.doReceive(java.lang.String destinationName) |
protected Message<?> |
JmsMessagingTemplate.doSendAndReceive(Destination destination,
Message<?> requestMessage) |
protected Message<?> |
JmsMessagingTemplate.doSendAndReceive(java.lang.String destinationName,
Message<?> requestMessage) |
Message<?> |
JmsMessagingTemplate.receive() |
Message<?> |
JmsMessageOperations.receive(java.lang.String destinationName)
Receive a message from the given destination.
|
Message<?> |
JmsMessagingTemplate.receive(java.lang.String destinationName) |
Message<?> |
JmsMessagingTemplate.sendAndReceive(Message<?> requestMessage) |
Message<?> |
JmsMessageOperations.sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage)
Send a request message and receive the reply from the given destination.
|
Message<?> |
JmsMessagingTemplate.sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage) |
Modifier and Type | Method and Description |
---|---|
protected void |
JmsMessagingTemplate.doSend(Destination destination,
Message<?> message) |
protected void |
JmsMessagingTemplate.doSend(java.lang.String destinationName,
Message<?> message) |
protected Message<?> |
JmsMessagingTemplate.doSendAndReceive(Destination destination,
Message<?> requestMessage) |
protected Message<?> |
JmsMessagingTemplate.doSendAndReceive(java.lang.String destinationName,
Message<?> requestMessage) |
void |
JmsMessagingTemplate.send(Message<?> message) |
void |
JmsMessageOperations.send(java.lang.String destinationName,
Message<?> message)
Send a message to the given destination.
|
void |
JmsMessagingTemplate.send(java.lang.String destinationName,
Message<?> message) |
Message<?> |
JmsMessagingTemplate.sendAndReceive(Message<?> requestMessage) |
Message<?> |
JmsMessageOperations.sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage)
Send a request message and receive the reply from the given destination.
|
Message<?> |
JmsMessagingTemplate.sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage) |
Modifier and Type | Method and Description |
---|---|
protected Message<?> |
MessagingMessageListenerAdapter.toMessagingMessage(Message jmsMessage) |
Modifier and Type | Method and Description |
---|---|
static JmsMessageHeaderAccessor |
JmsMessageHeaderAccessor.wrap(Message<?> message)
Create a
JmsMessageHeaderAccessor from the headers of an existing message. |
Constructor and Description |
---|
JmsMessageHeaderAccessor(Message<?> message) |
Modifier and Type | Method and Description |
---|---|
Message<?> |
MessagingException.getFailedMessage() |
Message<?> |
PollableChannel.receive()
Receive a message from this channel, blocking indefinitely if necessary.
|
Message<?> |
PollableChannel.receive(long timeout)
Receive a message from this channel, blocking until either a message is available
or the specified timeout period elapses.
|
Modifier and Type | Method and Description |
---|---|
void |
MessageHandler.handleMessage(Message<?> message)
Handle the given message.
|
default boolean |
MessageChannel.send(Message<?> message)
Send a
Message to this channel. |
boolean |
MessageChannel.send(Message<?> message,
long timeout)
Send a message, blocking until either the message is accepted or the
specified timeout period elapses.
|
Constructor and Description |
---|
MessageDeliveryException(Message<?> undeliveredMessage) |
MessageDeliveryException(Message<?> undeliveredMessage,
java.lang.String description) |
MessageDeliveryException(Message<?> undeliveredMessage,
java.lang.String description,
java.lang.Throwable cause) |
MessageDeliveryException(Message<?> message,
java.lang.Throwable cause) |
MessageHandlingException(Message<?> failedMessage) |
MessageHandlingException(Message<?> message,
java.lang.String description) |
MessageHandlingException(Message<?> message,
java.lang.String description,
java.lang.Throwable cause) |
MessageHandlingException(Message<?> failedMessage,
java.lang.Throwable cause) |
MessagingException(Message<?> message) |
MessagingException(Message<?> message,
java.lang.String description) |
MessagingException(Message<?> message,
java.lang.String description,
java.lang.Throwable cause) |
MessagingException(Message<?> message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Message<?> |
SimpleMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers) |
Message<?> |
MessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers)
Create a
Message whose payload is the result of converting the given
payload Object to serialized form. |
Message<?> |
AbstractMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers) |
Message<?> |
CompositeMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers) |
Message<?> |
AbstractMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint) |
Message<?> |
SmartMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint)
A variant of
MessageConverter.toMessage(Object, MessageHeaders) which takes an extra
conversion context as an argument, allowing to take e.g. |
Message<?> |
CompositeMessageConverter.toMessage(java.lang.Object payload,
MessageHeaders headers,
java.lang.Object conversionHint) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
AbstractMessageConverter.canConvertFrom(Message<?> message,
java.lang.Class<?> targetClass) |
protected boolean |
MappingJackson2MessageConverter.canConvertFrom(Message<?> message,
java.lang.Class<?> targetClass) |
protected boolean |
MarshallingMessageConverter.canConvertFrom(Message<?> message,
java.lang.Class<?> targetClass) |
protected java.lang.Object |
ByteArrayMessageConverter.convertFromInternal(Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint) |
protected java.lang.Object |
AbstractMessageConverter.convertFromInternal(Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint)
Convert the message payload from serialized form to an Object.
|
protected java.lang.Object |
MappingJackson2MessageConverter.convertFromInternal(Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint) |
protected java.lang.Object |
StringMessageConverter.convertFromInternal(Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint) |
protected java.lang.Object |
MarshallingMessageConverter.convertFromInternal(Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint) |
java.lang.Object |
SimpleMessageConverter.fromMessage(Message<?> message,
java.lang.Class<?> targetClass) |
java.lang.Object |
MessageConverter.fromMessage(Message<?> message,
java.lang.Class<?> targetClass)
Convert the payload of a
Message from a serialized form to a typed Object
of the specified target class. |
java.lang.Object |
GenericMessageConverter.fromMessage(Message<?> message,
java.lang.Class<?> targetClass) |
java.lang.Object |
AbstractMessageConverter.fromMessage(Message<?> message,
java.lang.Class<?> targetClass) |
java.lang.Object |
CompositeMessageConverter.fromMessage(Message<?> message,
java.lang.Class<?> targetClass) |
java.lang.Object |
AbstractMessageConverter.fromMessage(Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint) |
java.lang.Object |
SmartMessageConverter.fromMessage(Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint)
A variant of
MessageConverter.fromMessage(Message, Class) which takes an extra
conversion context as an argument, allowing to take e.g. |
java.lang.Object |
CompositeMessageConverter.fromMessage(Message<?> message,
java.lang.Class<?> targetClass,
java.lang.Object conversionHint) |
Constructor and Description |
---|
MessageConversionException(Message<?> failedMessage,
java.lang.String description) |
MessageConversionException(Message<?> failedMessage,
java.lang.String description,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
protected Message<?> |
AbstractMessageSendingTemplate.doConvert(java.lang.Object payload,
java.util.Map<java.lang.String,java.lang.Object> headers,
MessagePostProcessor postProcessor)
Convert the given Object to serialized form, possibly using a
MessageConverter , wrap it as a message with the given
headers and apply the given post processor. |
protected abstract Message<?> |
AbstractMessageReceivingTemplate.doReceive(D destination)
Actually receive a message from the given destination.
|
protected Message<?> |
GenericMessagingTemplate.doReceive(MessageChannel channel) |
protected Message<?> |
GenericMessagingTemplate.doReceive(MessageChannel channel,
long timeout) |
protected abstract Message<?> |
AbstractMessagingTemplate.doSendAndReceive(D destination,
Message<?> requestMessage) |
protected Message<?> |
GenericMessagingTemplate.doSendAndReceive(MessageChannel channel,
Message<?> requestMessage) |
Message<?> |
MessagePostProcessor.postProcessMessage(Message<?> message)
Process the given message.
|
Message<?> |
MessageReceivingOperations.receive()
Receive a message from a default destination.
|
Message<?> |
AbstractMessageReceivingTemplate.receive() |
Message<?> |
MessageReceivingOperations.receive(D destination)
Receive a message from the given destination.
|
Message<?> |
AbstractMessageReceivingTemplate.receive(D destination) |
Message<?> |
DestinationResolvingMessageReceivingOperations.receive(java.lang.String destinationName)
Resolve the given destination name and receive a message from it.
|
Message<?> |
AbstractDestinationResolvingMessagingTemplate.receive(java.lang.String destinationName) |
Message<?> |
AbstractMessagingTemplate.sendAndReceive(D destination,
Message<?> requestMessage) |
Message<?> |
MessageRequestReplyOperations.sendAndReceive(D destination,
Message<?> requestMessage)
Send a request message and receive the reply from the given destination.
|
Message<?> |
AbstractMessagingTemplate.sendAndReceive(Message<?> requestMessage) |
Message<?> |
MessageRequestReplyOperations.sendAndReceive(Message<?> requestMessage)
Send a request message and receive the reply from a default destination.
|
Message<?> |
DestinationResolvingMessageRequestReplyOperations.sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage)
Resolve the given destination name to a destination and send the given message,
receive a reply and return it.
|
Message<?> |
AbstractDestinationResolvingMessagingTemplate.sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
AbstractMessageReceivingTemplate.doConvert(Message<?> message,
java.lang.Class<T> targetClass)
Convert from the given message to the given target class.
|
protected abstract void |
AbstractMessageSendingTemplate.doSend(D destination,
Message<?> message) |
protected void |
GenericMessagingTemplate.doSend(MessageChannel channel,
Message<?> message) |
protected void |
GenericMessagingTemplate.doSend(MessageChannel channel,
Message<?> message,
long timeout) |
protected abstract Message<?> |
AbstractMessagingTemplate.doSendAndReceive(D destination,
Message<?> requestMessage) |
protected Message<?> |
GenericMessagingTemplate.doSendAndReceive(MessageChannel channel,
Message<?> requestMessage) |
Message<?> |
MessagePostProcessor.postProcessMessage(Message<?> message)
Process the given message.
|
void |
MessageSendingOperations.send(D destination,
Message<?> message)
Send a message to the given destination.
|
void |
AbstractMessageSendingTemplate.send(D destination,
Message<?> message) |
void |
MessageSendingOperations.send(Message<?> message)
Send a message to a default destination.
|
void |
AbstractMessageSendingTemplate.send(Message<?> message) |
void |
DestinationResolvingMessageSendingOperations.send(java.lang.String destinationName,
Message<?> message)
Resolve the given destination name to a destination and send a message to it.
|
void |
AbstractDestinationResolvingMessagingTemplate.send(java.lang.String destinationName,
Message<?> message) |
Message<?> |
AbstractMessagingTemplate.sendAndReceive(D destination,
Message<?> requestMessage) |
Message<?> |
MessageRequestReplyOperations.sendAndReceive(D destination,
Message<?> requestMessage)
Send a request message and receive the reply from the given destination.
|
Message<?> |
AbstractMessagingTemplate.sendAndReceive(Message<?> requestMessage) |
Message<?> |
MessageRequestReplyOperations.sendAndReceive(Message<?> requestMessage)
Send a request message and receive the reply from a default destination.
|
Message<?> |
DestinationResolvingMessageRequestReplyOperations.sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage)
Resolve the given destination name to a destination and send the given message,
receive a reply and return it.
|
Message<?> |
AbstractDestinationResolvingMessagingTemplate.sendAndReceive(java.lang.String destinationName,
Message<?> requestMessage) |
Modifier and Type | Method and Description |
---|---|
int |
DestinationPatternsMessageCondition.compareTo(DestinationPatternsMessageCondition other,
Message<?> message)
Compare the two conditions based on the destination patterns they contain.
|
int |
MessageCondition.compareTo(T other,
Message<?> message)
Compare this condition to another in the context of a specific message.
|
T |
MessageCondition.getMatchingCondition(Message<?> message)
Check if this condition matches the given Message and returns a
potentially new condition with content tailored to the current message.
|
DestinationPatternsMessageCondition |
DestinationPatternsMessageCondition.getMatchingCondition(Message<?> message)
Check if any of the patterns match the given Message destination and return an instance
that is guaranteed to contain matching patterns, sorted via
PathMatcher.getPatternComparator(String) . |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractNamedValueMethodArgumentResolver.handleMissingValue(java.lang.String name,
MethodParameter parameter,
Message<?> message)
Invoked when a named value is required, but
AbstractNamedValueMethodArgumentResolver.resolveArgumentInternal(MethodParameter, Message, String) returned null and
there is no default value. |
protected void |
HeaderMethodArgumentResolver.handleMissingValue(java.lang.String headerName,
MethodParameter parameter,
Message<?> message) |
protected void |
DestinationVariableMethodArgumentResolver.handleMissingValue(java.lang.String name,
MethodParameter parameter,
Message<?> message) |
protected void |
AbstractNamedValueMethodArgumentResolver.handleResolvedValue(java.lang.Object arg,
java.lang.String name,
MethodParameter parameter,
Message<?> message)
Invoked after a value is resolved.
|
java.lang.Object |
MessageMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
java.lang.Object |
AbstractNamedValueMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
java.lang.Object |
HeadersMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
java.lang.Object |
PayloadArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
protected abstract java.lang.Object |
AbstractNamedValueMethodArgumentResolver.resolveArgumentInternal(MethodParameter parameter,
Message<?> message,
java.lang.String name)
Resolves the given parameter type and value name into an argument value.
|
protected java.lang.Object |
HeaderMethodArgumentResolver.resolveArgumentInternal(MethodParameter parameter,
Message<?> message,
java.lang.String name) |
protected java.lang.Object |
DestinationVariableMethodArgumentResolver.resolveArgumentInternal(MethodParameter parameter,
Message<?> message,
java.lang.String name) |
protected void |
PayloadArgumentResolver.validate(Message<?> message,
MethodParameter parameter,
java.lang.Object target)
Validate the payload if applicable.
|
Constructor and Description |
---|
MethodArgumentNotValidException(Message<?> message,
MethodParameter parameter)
Create a new instance with the invalid
MethodParameter . |
MethodArgumentNotValidException(Message<?> message,
MethodParameter parameter,
BindingResult bindingResult)
Create a new instance with the invalid
MethodParameter and a
BindingResult . |
MethodArgumentTypeMismatchException(Message<?> message,
MethodParameter parameter,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
AbstractMethodMessageHandler.getDestination(Message<?> message) |
protected abstract java.util.Comparator<T> |
AbstractMethodMessageHandler.getMappingComparator(Message<?> message)
Return a comparator for sorting matching mappings.
|
protected abstract T |
AbstractMethodMessageHandler.getMatchingMapping(T mapping,
Message<?> message)
Check if a mapping matches the current message and return a possibly
new mapping with conditions relevant to the current request.
|
protected void |
AbstractMethodMessageHandler.handleMatch(T mapping,
HandlerMethod handlerMethod,
java.lang.String lookupDestination,
Message<?> message) |
void |
AbstractMethodMessageHandler.handleMessage(Message<?> message) |
protected void |
AbstractMethodMessageHandler.handleMessageInternal(Message<?> message,
java.lang.String lookupDestination) |
protected void |
AbstractMethodMessageHandler.handleNoMatch(java.util.Set<T> ts,
java.lang.String lookupDestination,
Message<?> message) |
void |
HandlerMethodReturnValueHandlerComposite.handleReturnValue(java.lang.Object returnValue,
MethodParameter returnType,
Message<?> message) |
void |
AbstractAsyncReturnValueHandler.handleReturnValue(java.lang.Object returnValue,
MethodParameter returnType,
Message<?> message) |
void |
HandlerMethodReturnValueHandler.handleReturnValue(java.lang.Object returnValue,
MethodParameter returnType,
Message<?> message)
Handle the given return value.
|
java.lang.Object |
InvocableHandlerMethod.invoke(Message<?> message,
java.lang.Object... providedArgs)
Invoke the method after resolving its argument values in the context of the given message.
|
protected void |
AbstractMethodMessageHandler.processHandlerMethodException(HandlerMethod handlerMethod,
java.lang.Exception exception,
Message<?> message) |
java.lang.Object |
HandlerMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message)
Resolves a method parameter into an argument value from a given message.
|
java.lang.Object |
HandlerMethodArgumentResolverComposite.resolveArgument(MethodParameter parameter,
Message<?> message)
Iterate over registered
HandlerMethodArgumentResolvers and invoke the one that supports it. |
Constructor and Description |
---|
MethodArgumentResolutionException(Message<?> message,
MethodParameter parameter)
Create a new instance providing the invalid
MethodParameter . |
MethodArgumentResolutionException(Message<?> message,
MethodParameter parameter,
java.lang.String description)
Create a new instance providing the invalid
MethodParameter and
a prepared description. |
Modifier and Type | Method and Description |
---|---|
int |
SimpMessageMappingInfo.compareTo(SimpMessageMappingInfo other,
Message<?> message) |
int |
SimpMessageTypeMessageCondition.compareTo(SimpMessageTypeMessageCondition other,
Message<?> message) |
protected MessageHeaderAccessor |
SimpMessageHeaderAccessor.createAccessor(Message<?> message) |
protected void |
SimpMessagingTemplate.doSend(java.lang.String destination,
Message<?> message) |
static SimpAttributes |
SimpAttributes.fromMessage(Message<?> message)
Extract the SiMP session attributes from the given message and
wrap them in a
SimpAttributes instance. |
SimpMessageTypeMessageCondition |
SimpMessageTypeMessageCondition.getMatchingCondition(Message<?> message) |
SimpMessageMappingInfo |
SimpMessageMappingInfo.getMatchingCondition(Message<?> message) |
void |
SimpMessagingTemplate.send(Message<?> message)
If the headers of the given message already contain a
SimpMessageHeaderAccessor#DESTINATION_HEADER then the message is sent without
further changes. |
static void |
SimpAttributesContextHolder.setAttributesFromMessage(Message<?> message)
Extract the SiMP session attributes from the given message, wrap them in
a
SimpAttributes instance and bind it to the current thread. |
static SimpMessageHeaderAccessor |
SimpMessageHeaderAccessor.wrap(Message<?> message)
Create an instance from the payload and headers of the given Message.
|
Constructor and Description |
---|
SimpMessageHeaderAccessor(Message<?> message)
A constructor for accessing and modifying existing message headers.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
SimpAnnotationMethodMessageHandler.getDestination(Message<?> message) |
protected java.util.Comparator<SimpMessageMappingInfo> |
SimpAnnotationMethodMessageHandler.getMappingComparator(Message<?> message) |
protected SimpMessageMappingInfo |
SimpAnnotationMethodMessageHandler.getMatchingMapping(SimpMessageMappingInfo mapping,
Message<?> message) |
protected java.lang.String[] |
SendToMethodReturnValueHandler.getTargetDestinations(java.lang.annotation.Annotation annotation,
Message<?> message,
java.lang.String defaultPrefix) |
protected java.lang.String |
SendToMethodReturnValueHandler.getUserName(Message<?> message,
MessageHeaders headers) |
protected void |
SimpAnnotationMethodMessageHandler.handleMatch(SimpMessageMappingInfo mapping,
HandlerMethod handlerMethod,
java.lang.String lookupDestination,
Message<?> message) |
void |
SubscriptionMethodReturnValueHandler.handleReturnValue(java.lang.Object returnValue,
MethodParameter returnType,
Message<?> message) |
void |
SendToMethodReturnValueHandler.handleReturnValue(java.lang.Object returnValue,
MethodParameter returnType,
Message<?> message) |
java.lang.Object |
PrincipalMethodArgumentResolver.resolveArgument(MethodParameter parameter,
Message<?> message) |
Constructor and Description |
---|
MissingSessionUserException(Message<?> message) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractSubscriptionRegistry.addSubscriptionInternal(java.lang.String sessionId,
java.lang.String subscriptionId,
java.lang.String destination,
Message<?> message) |
protected void |
DefaultSubscriptionRegistry.addSubscriptionInternal(java.lang.String sessionId,
java.lang.String subsId,
java.lang.String destination,
Message<?> message) |
MultiValueMap<java.lang.String,java.lang.String> |
AbstractSubscriptionRegistry.findSubscriptions(Message<?> message) |
MultiValueMap<java.lang.String,java.lang.String> |
SubscriptionRegistry.findSubscriptions(Message<?> message)
Find all subscriptions that should receive the given message.
|
protected abstract MultiValueMap<java.lang.String,java.lang.String> |
AbstractSubscriptionRegistry.findSubscriptionsInternal(java.lang.String destination,
Message<?> message) |
protected MultiValueMap<java.lang.String,java.lang.String> |
DefaultSubscriptionRegistry.findSubscriptionsInternal(java.lang.String destination,
Message<?> message) |
void |
AbstractBrokerMessageHandler.handleMessage(Message<?> message) |
protected void |
SimpleBrokerMessageHandler.handleMessageInternal(Message<?> message) |
protected abstract void |
AbstractBrokerMessageHandler.handleMessageInternal(Message<?> message) |
void |
AbstractSubscriptionRegistry.registerSubscription(Message<?> message) |
void |
SubscriptionRegistry.registerSubscription(Message<?> subscribeMessage)
Register a subscription represented by the given message.
|
protected abstract void |
AbstractSubscriptionRegistry.removeSubscriptionInternal(java.lang.String sessionId,
java.lang.String subscriptionId,
Message<?> message) |
protected void |
DefaultSubscriptionRegistry.removeSubscriptionInternal(java.lang.String sessionId,
java.lang.String subsId,
Message<?> message) |
protected void |
SimpleBrokerMessageHandler.sendMessageToSubscribers(java.lang.String destination,
Message<?> message) |
void |
AbstractSubscriptionRegistry.unregisterSubscription(Message<?> message) |
void |
SubscriptionRegistry.unregisterSubscription(Message<?> unsubscribeMessage)
Unregister a subscription.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Message<byte[]>> |
StompDecoder.decode(java.nio.ByteBuffer byteBuffer)
Decodes one or more STOMP frames from the given
ByteBuffer into a
list of Messages . |
java.util.List<Message<byte[]>> |
BufferingStompDecoder.decode(java.nio.ByteBuffer newBuffer)
Decodes one or more STOMP frames from the given
ByteBuffer into a
list of Messages . |
java.util.List<Message<byte[]>> |
StompDecoder.decode(java.nio.ByteBuffer byteBuffer,
MultiValueMap<java.lang.String,java.lang.String> partialMessageHeaders)
Decodes one or more STOMP frames from the given
buffer and returns
a list of Messages . |
protected java.util.List<Message<byte[]>> |
StompReactorNettyCodec.decodeInternal(java.nio.ByteBuffer nioBuffer) |
Modifier and Type | Method and Description |
---|---|
protected MessageHeaderAccessor |
StompHeaderAccessor.createAccessor(Message<?> message) |
byte[] |
StompEncoder.encode(Message<byte[]> message)
Encodes the given STOMP
message into a byte[] . |
protected java.nio.ByteBuffer |
StompReactorNettyCodec.encodeInternal(Message<byte[]> message) |
void |
DefaultStompSession.handleMessage(Message<byte[]> message) |
protected void |
StompBrokerRelayMessageHandler.handleMessageInternal(Message<?> message) |
static StompHeaderAccessor |
StompHeaderAccessor.wrap(Message<?> message)
Create an instance from the payload and headers of the given Message.
|
Modifier and Type | Method and Description |
---|---|
void |
UserDestinationMessageHandler.handleMessage(Message<?> message) |
void |
UserRegistryMessageHandler.handleMessage(Message<?> message) |
UserDestinationResult |
UserDestinationResolver.resolveDestination(Message<?> message)
Resolve the given message with a user destination to one or more messages
with actual destinations, one for each active user session.
|
UserDestinationResult |
DefaultUserDestinationResolver.resolveDestination(Message<?> message) |
Modifier and Type | Class and Description |
---|---|
class |
ErrorMessage
A
GenericMessage with a Throwable payload. |
class |
GenericMessage<T>
An implementation of
Message with a generic payload. |
Modifier and Type | Method and Description |
---|---|
Message<?> |
AbstractMessageChannel.ChannelInterceptorChain.applyPostReceive(Message<?> message,
MessageChannel channel) |
Message<?> |
AbstractMessageChannel.ChannelInterceptorChain.applyPreSend(Message<?> message,
MessageChannel channel) |
default Message<?> |
ExecutorChannelInterceptor.beforeHandle(Message<?> message,
MessageChannel channel,
MessageHandler handler)
Invoked inside the
Runnable submitted to the Executor just before
calling the target MessageHandler to handle the message. |
Message<T> |
MessageBuilder.build() |
static <T> Message<T> |
MessageBuilder.createMessage(T payload,
MessageHeaders messageHeaders)
A shortcut factory method for creating a message with the given payload
and
MessageHeaders . |
Message<?> |
MessageHandlingRunnable.getMessage()
Return the Message that will be handled.
|
Message<?> |
ErrorMessage.getOriginalMessage()
Return the original message (if available) at the point in the stack
where the ErrorMessage was created.
|
Message<?> |
ChannelInterceptorAdapter.postReceive(Message<?> message,
MessageChannel channel)
Deprecated.
|
default Message<?> |
ChannelInterceptor.postReceive(Message<?> message,
MessageChannel channel)
Invoked immediately after a Message has been retrieved but before
it is returned to the caller.
|
Message<?> |
ChannelInterceptorAdapter.preSend(Message<?> message,
MessageChannel channel)
Deprecated.
|
default Message<?> |
ChannelInterceptor.preSend(Message<?> message,
MessageChannel channel)
Invoked before the Message is actually sent to the channel.
|
Message<?> |
ImmutableMessageChannelInterceptor.preSend(Message<?> message,
MessageChannel channel) |
Modifier and Type | Method and Description |
---|---|
default void |
ExecutorChannelInterceptor.afterMessageHandled(Message<?> message,
MessageChannel channel,
MessageHandler handler,
java.lang.Exception ex)
Invoked inside the
Runnable submitted to the Executor after calling
the target MessageHandler regardless of the outcome (i.e. |
void |
ChannelInterceptorAdapter.afterReceiveCompletion(Message<?> message,
MessageChannel channel,
java.lang.Exception ex)
Deprecated.
|
default void |
ChannelInterceptor.afterReceiveCompletion(Message<?> message,
MessageChannel channel,
java.lang.Exception ex)
Invoked after the completion of a receive regardless of any exception that
have been raised thus allowing for proper resource cleanup.
|
void |
ChannelInterceptorAdapter.afterSendCompletion(Message<?> message,
MessageChannel channel,
boolean sent,
java.lang.Exception ex)
Deprecated.
|
default void |
ChannelInterceptor.afterSendCompletion(Message<?> message,
MessageChannel channel,
boolean sent,
java.lang.Exception ex)
Invoked after the completion of a send regardless of any exception that
have been raised thus allowing for proper resource cleanup.
|
Message<?> |
AbstractMessageChannel.ChannelInterceptorChain.applyPostReceive(Message<?> message,
MessageChannel channel) |
void |
AbstractMessageChannel.ChannelInterceptorChain.applyPostSend(Message<?> message,
MessageChannel channel,
boolean sent) |
Message<?> |
AbstractMessageChannel.ChannelInterceptorChain.applyPreSend(Message<?> message,
MessageChannel channel) |
default Message<?> |
ExecutorChannelInterceptor.beforeHandle(Message<?> message,
MessageChannel channel,
MessageHandler handler)
Invoked inside the
Runnable submitted to the Executor just before
calling the target MessageHandler to handle the message. |
protected MessageHeaderAccessor |
MessageHeaderAccessor.createAccessor(Message<?> message)
Build a 'nested' accessor for the given message.
|
static <T> MessageBuilder<T> |
MessageBuilder.fromMessage(Message<T> message)
Create a builder for a new
Message instance pre-populated with all of the
headers copied from the provided message. |
static <T extends MessageHeaderAccessor> |
MessageHeaderAccessor.getAccessor(Message<?> message,
java.lang.Class<T> requiredType)
Return the original
MessageHeaderAccessor used to create the headers
of the given Message , or null if that's not available or if
its type does not match the required type. |
static MessageHeaderAccessor |
MessageHeaderAccessor.getMutableAccessor(Message<?> message)
Return a mutable
MessageHeaderAccessor for the given message attempting
to match the type of accessor used to create the message headers, or otherwise
wrapping the message with a MessageHeaderAccessor instance. |
Message<?> |
ChannelInterceptorAdapter.postReceive(Message<?> message,
MessageChannel channel)
Deprecated.
|
default Message<?> |
ChannelInterceptor.postReceive(Message<?> message,
MessageChannel channel)
Invoked immediately after a Message has been retrieved but before
it is returned to the caller.
|
void |
ChannelInterceptorAdapter.postSend(Message<?> message,
MessageChannel channel,
boolean sent)
Deprecated.
|
default void |
ChannelInterceptor.postSend(Message<?> message,
MessageChannel channel,
boolean sent)
Invoked immediately after the send invocation.
|
Message<?> |
ChannelInterceptorAdapter.preSend(Message<?> message,
MessageChannel channel)
Deprecated.
|
default Message<?> |
ChannelInterceptor.preSend(Message<?> message,
MessageChannel channel)
Invoked before the Message is actually sent to the channel.
|
Message<?> |
ImmutableMessageChannelInterceptor.preSend(Message<?> message,
MessageChannel channel) |
boolean |
AbstractMessageChannel.send(Message<?> message) |
boolean |
AbstractMessageChannel.send(Message<?> message,
long timeout) |
boolean |
ExecutorSubscribableChannel.sendInternal(Message<?> message,
long timeout) |
protected abstract boolean |
AbstractMessageChannel.sendInternal(Message<?> message,
long timeout) |
void |
AbstractMessageChannel.ChannelInterceptorChain.triggerAfterReceiveCompletion(Message<?> message,
MessageChannel channel,
java.lang.Exception ex) |
void |
AbstractMessageChannel.ChannelInterceptorChain.triggerAfterSendCompletion(Message<?> message,
MessageChannel channel,
boolean sent,
java.lang.Exception ex) |
Constructor and Description |
---|
ErrorMessage(java.lang.Throwable payload,
java.util.Map<java.lang.String,java.lang.Object> headers,
Message<?> originalMessage)
Create a new message with the given payload, headers and original message.
|
ErrorMessage(java.lang.Throwable payload,
Message<?> originalMessage)
Create a new message with the given payload and original message.
|
ErrorMessage(java.lang.Throwable payload,
MessageHeaders headers,
Message<?> originalMessage)
Create a new message with the payload,
MessageHeaders and original message. |
MessageHeaderAccessor(Message<?> message)
A constructor accepting the headers of an existing message to copy.
|
NativeMessageHeaderAccessor(Message<?> message)
A protected constructor accepting the headers of an existing message to copy.
|
Modifier and Type | Method and Description |
---|---|
void |
TcpConnectionHandler.handleMessage(Message<P> message)
Handle a message received from the remote host.
|
ListenableFuture<java.lang.Void> |
TcpConnection.send(Message<P> message)
Send the given message.
|
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Message<P>> |
ReactorNettyCodec.decode(io.netty.buffer.ByteBuf inputBuffer)
Decode the input
ByteBuf into one or more Messages . |
java.util.Collection<Message<P>> |
AbstractNioBufferReactorNettyCodec.decode(io.netty.buffer.ByteBuf inputBuffer) |
protected abstract java.util.List<Message<P>> |
AbstractNioBufferReactorNettyCodec.decodeInternal(java.nio.ByteBuffer nioBuffer) |
Modifier and Type | Method and Description |
---|---|
void |
ReactorNettyCodec.encode(Message<P> message,
io.netty.buffer.ByteBuf outputBuffer)
Encode the given
Message to the output ByteBuf . |
void |
AbstractNioBufferReactorNettyCodec.encode(Message<P> message,
io.netty.buffer.ByteBuf outputBuffer) |
protected abstract java.nio.ByteBuffer |
AbstractNioBufferReactorNettyCodec.encodeInternal(Message<P> message) |
ListenableFuture<java.lang.Void> |
ReactorNettyTcpConnection.send(Message<P> message) |
Modifier and Type | Method and Description |
---|---|
Message<byte[]> |
AbstractSubProtocolEvent.getMessage()
Return the Message associated with the event.
|
Message<byte[]> |
StompSubProtocolErrorHandler.handleClientMessageProcessingError(Message<byte[]> clientMessage,
java.lang.Throwable ex) |
Message<P> |
SubProtocolErrorHandler.handleClientMessageProcessingError(Message<P> clientMessage,
java.lang.Throwable ex)
Handle errors thrown while processing client messages providing an
opportunity to prepare the error message or to prevent one from being sent.
|
Message<byte[]> |
StompSubProtocolErrorHandler.handleErrorMessageToClient(Message<byte[]> errorMessage) |
Message<P> |
SubProtocolErrorHandler.handleErrorMessageToClient(Message<P> errorMessage)
Handle errors sent from the server side to clients, e.g.
|
protected Message<byte[]> |
StompSubProtocolErrorHandler.handleInternal(StompHeaderAccessor errorHeaderAccessor,
byte[] errorPayload,
java.lang.Throwable cause,
StompHeaderAccessor clientHeaderAccessor) |
Modifier and Type | Method and Description |
---|---|
Message<byte[]> |
StompSubProtocolErrorHandler.handleClientMessageProcessingError(Message<byte[]> clientMessage,
java.lang.Throwable ex) |
Message<P> |
SubProtocolErrorHandler.handleClientMessageProcessingError(Message<P> clientMessage,
java.lang.Throwable ex)
Handle errors thrown while processing client messages providing an
opportunity to prepare the error message or to prevent one from being sent.
|
Message<byte[]> |
StompSubProtocolErrorHandler.handleErrorMessageToClient(Message<byte[]> errorMessage) |
Message<P> |
SubProtocolErrorHandler.handleErrorMessageToClient(Message<P> errorMessage)
Handle errors sent from the server side to clients, e.g.
|
void |
SubProtocolWebSocketHandler.handleMessage(Message<?> message)
Handle an outbound Spring Message to a WebSocket client.
|
void |
SubProtocolHandler.handleMessageToClient(WebSocketSession session,
Message<?> message)
Handle the given
Message to the client associated with the given WebSocket session. |
void |
StompSubProtocolHandler.handleMessageToClient(WebSocketSession session,
Message<?> message)
Handle STOMP messages going back out to WebSocket clients.
|
java.lang.String |
SubProtocolHandler.resolveSessionId(Message<?> message)
Resolve the session id from the given message or return
null . |
java.lang.String |
StompSubProtocolHandler.resolveSessionId(Message<?> message) |
protected StompHeaderAccessor |
StompSubProtocolHandler.toMutableAccessor(StompHeaderAccessor headerAccessor,
Message<?> message) |
Constructor and Description |
---|
AbstractSubProtocolEvent(java.lang.Object source,
Message<byte[]> message)
Create a new AbstractSubProtocolEvent.
|
AbstractSubProtocolEvent(java.lang.Object source,
Message<byte[]> message,
java.security.Principal user)
Create a new AbstractSubProtocolEvent.
|
SessionConnectedEvent(java.lang.Object source,
Message<byte[]> message)
Create a new SessionConnectedEvent.
|
SessionConnectedEvent(java.lang.Object source,
Message<byte[]> message,
java.security.Principal user) |
SessionConnectEvent(java.lang.Object source,
Message<byte[]> message)
Create a new SessionConnectEvent.
|
SessionConnectEvent(java.lang.Object source,
Message<byte[]> message,
java.security.Principal user) |
SessionDisconnectEvent(java.lang.Object source,
Message<byte[]> message,
java.lang.String sessionId,
CloseStatus closeStatus)
Create a new SessionDisconnectEvent.
|
SessionDisconnectEvent(java.lang.Object source,
Message<byte[]> message,
java.lang.String sessionId,
CloseStatus closeStatus,
java.security.Principal user)
Create a new SessionDisconnectEvent.
|
SessionSubscribeEvent(java.lang.Object source,
Message<byte[]> message) |
SessionSubscribeEvent(java.lang.Object source,
Message<byte[]> message,
java.security.Principal user) |
SessionUnsubscribeEvent(java.lang.Object source,
Message<byte[]> message) |
SessionUnsubscribeEvent(java.lang.Object source,
Message<byte[]> message,
java.security.Principal user) |