org.apache.cxf.transport.jms
Class JMSTransportBase
java.lang.Object
org.apache.cxf.transport.jms.JMSTransportBase
public class JMSTransportBase
- extends java.lang.Object
|
Method Summary |
protected void |
addProtocolHeaders(javax.jms.Message message,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
|
protected void |
connected(javax.jms.Destination target,
javax.jms.Destination reply,
JMSSessionFactory factory)
Callback from the JMSProviderHub indicating the ClientTransport has
been sucessfully connected. |
protected java.lang.String |
getAddrUriFromJMSAddrPolicy()
|
protected java.lang.String |
getCorrelationId(JMSMessageHeadersType headers)
|
protected int |
getJMSDeliveryMode(JMSMessageHeadersType headers)
|
protected int |
getJMSPriority(JMSMessageHeadersType headers)
|
protected java.lang.String |
getReplyTotAddrUriFromJMSAddrPolicy()
|
protected long |
getTimeToLive(JMSMessageHeadersType headers)
|
protected boolean |
isDestinationStyleQueue()
|
protected javax.jms.Message |
marshal(java.lang.Object payload,
javax.jms.Session session,
javax.jms.Destination replyTo,
java.lang.String messageType)
Create a JMS of the appropriate type populated with the given payload. |
protected JMSMessageHeadersType |
populateIncomingContext(javax.jms.Message message,
Message inMessage,
java.lang.String headerType)
|
protected void |
setMessageProperties(JMSMessageHeadersType headers,
javax.jms.Message message)
|
protected java.lang.Object |
unmarshal(javax.jms.Message message)
Unmarshal the payload of an incoming message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
targetDestination
protected javax.jms.Destination targetDestination
replyDestination
protected javax.jms.Destination replyDestination
sessionFactory
protected JMSSessionFactory sessionFactory
bus
protected Bus bus
endpointInfo
protected EndpointInfo endpointInfo
beanNameSuffix
protected java.lang.String beanNameSuffix
JMSTransportBase
public JMSTransportBase(Bus b,
EndpointInfo endpoint,
boolean isServer,
java.lang.String suffix,
JMSTransport transport)
connected
protected void connected(javax.jms.Destination target,
javax.jms.Destination reply,
JMSSessionFactory factory)
- Callback from the JMSProviderHub indicating the ClientTransport has
been sucessfully connected.
- Parameters:
targetDestination - the target destinationsessionFactory - used to get access to a pooled JMS resources
marshal
protected javax.jms.Message marshal(java.lang.Object payload,
javax.jms.Session session,
javax.jms.Destination replyTo,
java.lang.String messageType)
throws javax.jms.JMSException
- Create a JMS of the appropriate type populated with the given payload.
- Parameters:
payload - the message payload, expected to be either of type
String or byte[] depending on payload typesession - the JMS sessionreplyTo - the ReplyTo destination if any
- Returns:
- a JMS of the appropriate type populated with the given payload
- Throws:
javax.jms.JMSException
unmarshal
protected java.lang.Object unmarshal(javax.jms.Message message)
throws javax.jms.JMSException
- Unmarshal the payload of an incoming message.
- Parameters:
message - the incoming message
- Returns:
- the unmarshalled message payload, either of type String or
byte[] depending on payload type
- Throws:
javax.jms.JMSException
populateIncomingContext
protected JMSMessageHeadersType populateIncomingContext(javax.jms.Message message,
Message inMessage,
java.lang.String headerType)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getJMSDeliveryMode
protected int getJMSDeliveryMode(JMSMessageHeadersType headers)
getJMSPriority
protected int getJMSPriority(JMSMessageHeadersType headers)
getTimeToLive
protected long getTimeToLive(JMSMessageHeadersType headers)
getCorrelationId
protected java.lang.String getCorrelationId(JMSMessageHeadersType headers)
addProtocolHeaders
protected void addProtocolHeaders(javax.jms.Message message,
java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
setMessageProperties
protected void setMessageProperties(JMSMessageHeadersType headers,
javax.jms.Message message)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getAddrUriFromJMSAddrPolicy
protected java.lang.String getAddrUriFromJMSAddrPolicy()
getReplyTotAddrUriFromJMSAddrPolicy
protected java.lang.String getReplyTotAddrUriFromJMSAddrPolicy()
isDestinationStyleQueue
protected boolean isDestinationStyleQueue()
Apache CXF