com.aelitis.azureus.core.clientmessageservice.secure.impl
Class SecureMessageServiceClientImpl

java.lang.Object
  extended by com.aelitis.azureus.core.clientmessageservice.secure.impl.SecureMessageServiceClientImpl
All Implemented Interfaces:
SecureMessageServiceClient

public class SecureMessageServiceClientImpl
extends java.lang.Object
implements SecureMessageServiceClient


Field Summary
static java.lang.String SERVICE_NAME
           
static int STATUS_ABORT
           
static int STATUS_FAILED
           
static int STATUS_INVALID_SEQUENCE
           
static int STATUS_LOGON_FAIL
           
static int STATUS_OK
           
 
Constructor Summary
SecureMessageServiceClientImpl(java.lang.String _host, int _port, int _timeout_secs, java.security.interfaces.RSAPublicKey _key, SecureMessageServiceClientAdapter _adapter)
           
 
Method Summary
 void addListener(SecureMessageServiceClientListener l)
           
protected  void cancel(SecureMessageServiceClientMessage message)
           
 SecureMessageServiceClientMessage[] getMessages()
           
 void removeListener(SecureMessageServiceClientListener l)
           
 SecureMessageServiceClientMessage sendMessage(java.util.Map request, java.lang.Object data, java.lang.String description)
           
 void sendMessages()
          This shouldn't be required under normal circumstances as message addition causes dispatch and the server handles retries itself.
protected  void sendMessagesSupport()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUS_OK

public static final int STATUS_OK
See Also:
Constant Field Values

STATUS_LOGON_FAIL

public static final int STATUS_LOGON_FAIL
See Also:
Constant Field Values

STATUS_INVALID_SEQUENCE

public static final int STATUS_INVALID_SEQUENCE
See Also:
Constant Field Values

STATUS_FAILED

public static final int STATUS_FAILED
See Also:
Constant Field Values

STATUS_ABORT

public static final int STATUS_ABORT
See Also:
Constant Field Values

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Constructor Detail

SecureMessageServiceClientImpl

public SecureMessageServiceClientImpl(java.lang.String _host,
                                      int _port,
                                      int _timeout_secs,
                                      java.security.interfaces.RSAPublicKey _key,
                                      SecureMessageServiceClientAdapter _adapter)
Method Detail

sendMessages

public void sendMessages()
Description copied from interface: SecureMessageServiceClient
This shouldn't be required under normal circumstances as message addition causes dispatch and the server handles retries itself. However, sometimes it is necessary to force a dispatch to occur (e.g. to validate new authentication information immediately rather than wait for it to happen naturally)

Specified by:
sendMessages in interface SecureMessageServiceClient

sendMessagesSupport

protected void sendMessagesSupport()

sendMessage

public SecureMessageServiceClientMessage sendMessage(java.util.Map request,
                                                     java.lang.Object data,
                                                     java.lang.String description)
Specified by:
sendMessage in interface SecureMessageServiceClient

cancel

protected void cancel(SecureMessageServiceClientMessage message)

getMessages

public SecureMessageServiceClientMessage[] getMessages()
Specified by:
getMessages in interface SecureMessageServiceClient

addListener

public void addListener(SecureMessageServiceClientListener l)
Specified by:
addListener in interface SecureMessageServiceClient

removeListener

public void removeListener(SecureMessageServiceClientListener l)
Specified by:
removeListener in interface SecureMessageServiceClient