kaos.core.service.util
Class CallbackTransportImpl

java.lang.Object
  extended by kaos.core.service.util.CallbackTransportImpl
All Implemented Interfaces:
java.io.Serializable, CallbackTransport, CallbackTransportInfo

public class CallbackTransportImpl
extends java.lang.Object
implements CallbackTransport

Defines the operations to set the sender's transport information. This interface is combined with remote callbacks, so the remote callbacks can use the sender's platform to send messages back to the requestors of action/information.

See Also:
Serialized Form

Constructor Summary
CallbackTransportImpl(Locator receiverLocator, java.lang.String receiverName)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Locator getReceiverLocator()
           
 java.lang.String getReceiverName()
           
 Locator getSenderLocator()
           
 java.lang.String getSenderName()
           
 int hashCode()
           
 void sendMsg(Msg aMsg)
           
 void setTransportInfo(MessageTransportService msgTransportService, Locator senderLocator, java.lang.String senderName)
          Set the transport parameters of the sender, so the callback object will be able to send messages back.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallbackTransportImpl

public CallbackTransportImpl(Locator receiverLocator,
                             java.lang.String receiverName)
Method Detail

setTransportInfo

public void setTransportInfo(MessageTransportService msgTransportService,
                             Locator senderLocator,
                             java.lang.String senderName)
Set the transport parameters of the sender, so the callback object will be able to send messages back.

Specified by:
setTransportInfo in interface CallbackTransportInfo
Parameters:
msgTransportService - MessageTransportService that can be used to send messages out.
senderLocator - Locator of the sender to include in all outgoing TransportMessages.
senderName - String containing the sender name to include in all outgoing TransportMessages.

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface CallbackTransport
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface CallbackTransport
Overrides:
hashCode in class java.lang.Object

getReceiverLocator

public Locator getReceiverLocator()
Specified by:
getReceiverLocator in interface CallbackTransport

getReceiverName

public java.lang.String getReceiverName()
Specified by:
getReceiverName in interface CallbackTransport

getSenderLocator

public Locator getSenderLocator()
Specified by:
getSenderLocator in interface CallbackTransport

getSenderName

public java.lang.String getSenderName()
Specified by:
getSenderName in interface CallbackTransport

sendMsg

public void sendMsg(Msg aMsg)
             throws TransportFailure,
                    NotLocatableException
Specified by:
sendMsg in interface CallbackTransport
Throws:
TransportFailure
NotLocatableException