Apache CXF API

org.apache.cxf.transport.jms
Class JMSConduit.DecoupledDestination

java.lang.Object
  extended by org.apache.cxf.transport.jms.JMSConduit.DecoupledDestination
All Implemented Interfaces:
Destination, Observable
Enclosing class:
JMSConduit

protected class JMSConduit.DecoupledDestination
extends java.lang.Object
implements Destination

Represented decoupled response endpoint.


Field Summary
protected  MessageObserver decoupledMessageObserver
           
 
Method Summary
 EndpointReferenceType getAddress()
           
 Conduit getBackChannel(Message inMessage, Message partialResponse, EndpointReferenceType addr)
          Retreive a back-channel Conduit, which must be policy-compatible with the current Message and associated Destination.
 MessageObserver getMessageObserver()
           
 void setMessageObserver(MessageObserver observer)
          Register a message observer for incoming messages.
 void shutdown()
          Shutdown the Destination, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

decoupledMessageObserver

protected MessageObserver decoupledMessageObserver
Method Detail

getAddress

public EndpointReferenceType getAddress()
Specified by:
getAddress in interface Destination
Returns:
the reference associated with this Destination

getBackChannel

public Conduit getBackChannel(Message inMessage,
                              Message partialResponse,
                              EndpointReferenceType addr)
                       throws java.io.IOException
Description copied from interface: Destination
Retreive a back-channel Conduit, which must be policy-compatible with the current Message and associated Destination. For example compatible Quality of Protection must be asserted on the back-channel. This would generally only be an issue if the back-channel is decoupled.

Specified by:
getBackChannel in interface Destination
Parameters:
inMessage - the current message (null to indicate a disassociated back-channel.
partialResponse - in the decoupled case, this is expected to be the outbound Message to be sent over the in-built back-channel.
addr - the backchannel address (null to indicate anonymous)
Returns:
a suitable Conduit
Throws:
java.io.IOException

shutdown

public void shutdown()
Description copied from interface: Destination
Shutdown the Destination, i.e. stop accepting incoming messages.

Specified by:
shutdown in interface Destination

setMessageObserver

public void setMessageObserver(MessageObserver observer)
Description copied from interface: Observable
Register a message observer for incoming messages.

Specified by:
setMessageObserver in interface Observable
Parameters:
observer - the observer to notify on receipt of incoming

getMessageObserver

public MessageObserver getMessageObserver()
Specified by:
getMessageObserver in interface Destination

Apache CXF API

Apache CXF is an effort undergoing incubation at the Apache Software Foundation(ASF) and sponsored by the Apache Incubator PMC.