Apache CXF API

org.apache.cxf.transport.jms
Class JMSTransportBase

java.lang.Object
  extended by org.apache.cxf.transport.jms.JMSTransportBase

public class JMSTransportBase
extends java.lang.Object


Field Summary
protected  java.lang.String beanNameSuffix
           
protected  Bus bus
           
protected  EndpointInfo endpointInfo
           
protected  javax.jms.Destination replyDestination
           
protected  JMSSessionFactory sessionFactory
           
protected  javax.jms.Destination targetDestination
           
 
Constructor Summary
JMSTransportBase(Bus b, EndpointInfo endpoint, boolean isServer, java.lang.String suffix, JMSTransport transport)
           
 
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
 

Field Detail

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
Constructor Detail

JMSTransportBase

public JMSTransportBase(Bus b,
                        EndpointInfo endpoint,
                        boolean isServer,
                        java.lang.String suffix,
                        JMSTransport transport)
Method Detail

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 destination
sessionFactory - 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 type
session - the JMS session
replyTo - 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 API

Apache CXF