eneter.messaging.messagingsystems.composites.authenticatedconnection
Interface IGetHandshakeMessage


public interface IGetHandshakeMessage

Callback method to get the handshake message. When AuthenticatedDuplexInputChannel receives the login message this callback is called to get the handshake message. The handshake message is then sent to the connecting AuthenticatedDuplexOutputChannel which will process it and send back the handshake response message.


Method Summary
 java.lang.Object getHandshakeMessage(java.lang.String channelId, java.lang.String responseReceiverId, java.lang.Object loginMessage)
          Returns the handshake message.
 

Method Detail

getHandshakeMessage

java.lang.Object getHandshakeMessage(java.lang.String channelId,
                                     java.lang.String responseReceiverId,
                                     java.lang.Object loginMessage)
Returns the handshake message. Returned handshake message must be String or byte[]. If it returns null it means the connection will be closed. (e.g. if the login message was not accepted.)

Parameters:
channelId - connection address
responseReceiverId - unique id representing the connection with the client
loginMessage - login name used by the client
Returns:
handshake message (must be String or byte[])