Apache CXF API

org.apache.cxf.binding.corba
Class CorbaDestination

java.lang.Object
  extended by org.apache.cxf.binding.corba.CorbaDestination
All Implemented Interfaces:
Destination, MultiplexDestination, Observable

public class CorbaDestination
extends Object
implements MultiplexDestination


Constructor Summary
CorbaDestination(EndpointInfo ei, OrbConfig config)
           
CorbaDestination(EndpointInfo ei, OrbConfig config, CorbaTypeMap tm)
           
 
Method Summary
 void activate()
           
protected  POA createPOA(String name, POA parentPOA, POAManager poaManager)
           
 void deactivate()
           
 EndpointReferenceType getAddress()
           
protected  AddressType getAddressType()
           
 EndpointReferenceType getAddressWithId(String id)
           
 Conduit getBackChannel(Message inMessage, Message partialResponse, EndpointReferenceType ref)
          Retreive a back-channel Conduit, which must be policy-compatible with the current Message and associated Destination.
 BindingInfo getBindingInfo()
           
 CorbaTypeMap getCorbaTypeMap()
           
 String getDestinationAddress()
           
 EndpointInfo getEndPointInfo()
           
 String getId(Map contextMap)
           
 MessageObserver getMessageObserver()
          Retrieves the message observer for incoming messages
protected  ORB getOrb()
           
 ORB getORB(List<String> orbArgs, String location, Properties props)
           
 OrbConfig getOrbConfig()
           
 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
 

Constructor Detail

CorbaDestination

public CorbaDestination(EndpointInfo ei,
                        OrbConfig config)

CorbaDestination

public CorbaDestination(EndpointInfo ei,
                        OrbConfig config,
                        CorbaTypeMap tm)
Method Detail

getOrbConfig

public OrbConfig getOrbConfig()

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 ref)
                       throws 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.

Specified by:
getBackChannel in interface Destination
Parameters:
inMessage - the current message
partialResponse - - will likely always be null
ref - - will likely always be null
Returns:
a suitable Conduit
Throws:
IOException

getBindingInfo

public BindingInfo getBindingInfo()

getEndPointInfo

public EndpointInfo getEndPointInfo()

getCorbaTypeMap

public CorbaTypeMap getCorbaTypeMap()

shutdown

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

Specified by:
shutdown in interface Destination

getORB

public ORB getORB(List<String> orbArgs,
                  String location,
                  Properties props)

getOrb

protected ORB getOrb()

getAddressType

protected AddressType getAddressType()

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

activate

public void activate()

getDestinationAddress

public String getDestinationAddress()

getMessageObserver

public MessageObserver getMessageObserver()
Description copied from interface: Observable
Retrieves the message observer for incoming messages

Specified by:
getMessageObserver in interface Destination
Specified by:
getMessageObserver in interface Observable
Returns:
the MessageObserver for incoming messages

deactivate

public void deactivate()

createPOA

protected POA createPOA(String name,
                        POA parentPOA,
                        POAManager poaManager)

getAddressWithId

public EndpointReferenceType getAddressWithId(String id)
Specified by:
getAddressWithId in interface MultiplexDestination
Returns:
the a reference containing the id that is associated with this Destination

getId

public String getId(Map contextMap)
Specified by:
getId in interface MultiplexDestination
Parameters:
contextMap - for this invocation. Obtained for example from JAX-WS WebServiceContext.getMessageContext(). The context will either contain the WS-A To content and/or some property that identifies the target address, eg MessageContext.PATH_INFO for the current invocation
Returns:
the id associated with the current invocation

Apache CXF API

Apache CXF