public class JmsMessageReceiver extends SimpleWebServiceMessageReceiverObjectSupport
WebServiceMessageReceiver
, and has
methods for handling incoming JMS BytesMessage
and TextMessage
requests. Also contains a
textMessageEncoding
property, which determines the encoding used to read from and write to
TextMessages
. This property defaults to UTF-8
.
Used by WebServiceMessageListener
.
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_TEXT_MESSAGE_ENCODING
Default encoding used to read from and write to
TextMessage messages. |
logger
Constructor and Description |
---|
JmsMessageReceiver() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleMessage(javax.jms.Message request,
javax.jms.Session session)
Handles an incoming message.
|
void |
setPostProcessor(org.springframework.jms.core.MessagePostProcessor postProcessor)
Sets the optional
MessagePostProcessor to further modify outgoing messages after the XML contents has
been set. |
void |
setTextMessageEncoding(String textMessageEncoding)
Sets the encoding used to read from and write to
TextMessage messages. |
afterPropertiesSet, getMessageReceiver, handleConnection, setMessageReceiver
getMessageFactory, handleConnection, handleNoEndpointFoundException, setMessageFactory
public static final String DEFAULT_TEXT_MESSAGE_ENCODING
TextMessage
messages.public void setTextMessageEncoding(String textMessageEncoding)
TextMessage
messages. Defaults to UTF-8
.public void setPostProcessor(org.springframework.jms.core.MessagePostProcessor postProcessor)
MessagePostProcessor
to further modify outgoing messages after the XML contents has
been set.protected final void handleMessage(javax.jms.Message request, javax.jms.Session session) throws Exception
request
- the incoming messagesession
- the JMS session used to create a responseIllegalArgumentException
- when request is not a BytesMessage
Exception
Copyright © 2020 Pivotal Software. All rights reserved.