com.sun.sgs.client.simple
Interface SimpleClientListener

All Superinterfaces:
ServerSessionListener

public interface SimpleClientListener
extends ServerSessionListener

A listener used in conjunction with a SimpleClient.

A SimpleClientListener, specified when a SimpleClient is constructed, is notified of connection-related events generated during login session establishment, client reconnection, and client logout, and also is notified of message receipt.

See Also:
SimpleClient

Method Summary
 PasswordAuthentication getPasswordAuthentication()
          Requests a login credential for the client associated with this listener.
 void loggedIn()
          Notifies this listener that a session has been established with the server as a result of a successful login.
 void loginFailed(String reason)
          Notifies this listener that a session could not be established with the server due to some failure logging in such as failure to verify a login credential.
 
Methods inherited from interface com.sun.sgs.client.ServerSessionListener
disconnected, joinedChannel, receivedMessage, reconnected, reconnecting
 

Method Detail

getPasswordAuthentication

PasswordAuthentication getPasswordAuthentication()
Requests a login credential for the client associated with this listener.

Returns:
a login credential for the client

loggedIn

void loggedIn()
Notifies this listener that a session has been established with the server as a result of a successful login.


loginFailed

void loginFailed(String reason)
Notifies this listener that a session could not be established with the server due to some failure logging in such as failure to verify a login credential.

Parameters:
reason - a description of the failure

RedDwarf, Version 0.10.0
2010-02-12 09:11:07

Copyright © 2010 The RedDwarf Authors. All rights reserved
Copyright © 2007-2010 Sun Microsystems, Inc. All rights reserved