Package org.apache.cxf.binding.corba
Class CorbaDestination
- java.lang.Object
-
- org.apache.cxf.binding.corba.CorbaDestination
-
- All Implemented Interfaces:
Destination,MultiplexDestination,Observable
public class CorbaDestination extends Object implements MultiplexDestination
-
-
Constructor Summary
Constructors Constructor Description CorbaDestination(EndpointInfo ei, OrbConfig config)CorbaDestination(EndpointInfo ei, OrbConfig config, CorbaTypeMap tm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()protected org.omg.PortableServer.POAcreatePOA(String name, org.omg.PortableServer.POA parentPOA, org.omg.PortableServer.POAManager poaManager)voiddeactivate()org.apache.cxf.ws.addressing.EndpointReferenceTypegetAddress()protected AddressTypegetAddressType()org.apache.cxf.ws.addressing.EndpointReferenceTypegetAddressWithId(String id)ConduitgetBackChannel(Message inMessage)Retreive a back-channel Conduit, which must be policy-compatible with the current Message and associated Destination.BindingInfogetBindingInfo()CorbaTypeMapgetCorbaTypeMap()StringgetDestinationAddress()EndpointInfogetEndPointInfo()StringgetId(Map<String,Object> contextMap)MessageObservergetMessageObserver()Retrieves the message observer for incoming messagesprotected org.omg.CORBA.ORBgetOrb()org.omg.CORBA.ORBgetORB(List<String> orbArgs, String location, Properties props)OrbConfiggetOrbConfig()voidsetMessageObserver(MessageObserver observer)Register a message observer for incoming messages.voidshutdown()Shutdown the Destination, i.e.
-
-
-
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 org.apache.cxf.ws.addressing.EndpointReferenceType getAddress()
- Specified by:
getAddressin interfaceDestination- Returns:
- the reference associated with this Destination
-
getBackChannel
public Conduit getBackChannel(Message inMessage) throws IOException
Description copied from interface:DestinationRetreive 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:
getBackChannelin interfaceDestination- Parameters:
inMessage- the current message- 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:DestinationShutdown the Destination, i.e. stop accepting incoming messages.- Specified by:
shutdownin interfaceDestination
-
getORB
public org.omg.CORBA.ORB getORB(List<String> orbArgs, String location, Properties props)
-
getOrb
protected org.omg.CORBA.ORB getOrb()
-
getAddressType
protected AddressType getAddressType()
-
setMessageObserver
public void setMessageObserver(MessageObserver observer)
Description copied from interface:ObservableRegister a message observer for incoming messages.- Specified by:
setMessageObserverin interfaceObservable- 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:ObservableRetrieves the message observer for incoming messages- Specified by:
getMessageObserverin interfaceDestination- Specified by:
getMessageObserverin interfaceObservable- Returns:
- the MessageObserver for incoming messages
-
deactivate
public void deactivate()
-
createPOA
protected org.omg.PortableServer.POA createPOA(String name, org.omg.PortableServer.POA parentPOA, org.omg.PortableServer.POAManager poaManager)
-
getAddressWithId
public org.apache.cxf.ws.addressing.EndpointReferenceType getAddressWithId(String id)
- Specified by:
getAddressWithIdin interfaceMultiplexDestination- Returns:
- the a reference containing the id that is associated with this Destination
-
getId
public String getId(Map<String,Object> contextMap)
- Specified by:
getIdin interfaceMultiplexDestination- 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
-
-