|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A high level abstraction of the functions provided by a session-oriented RMI-based server application. Primarily deals with connecting and disconnecting. Users can connect anonymously, or with a username and password. As a minimum, connecting client applications must identify themselves (for the purpose of logging) and indicate the user's preferred language.
| Field Summary | |
static int |
EXISTINGUSER
Use with getConnection to indicate that this user would like to be added as a new user. |
static int |
NEWUSER
Use with getConnection to indicate that this user would like to be added as a new user. |
static int |
SUPERUSER
Use with getConnection to request a server supervisor connection |
| Method Summary | |
void |
disconnect(String sessionID)
Disconnect from the broker |
String |
getConnection(String clientInfo,
String language)
Establishes a session for the client application. |
String |
getConnection(String clientInfo,
String language,
String serverUser,
String serverPassword,
int userType)
Establishes a session for the client application. |
| Field Detail |
public static final int NEWUSER
public static final int EXISTINGUSER
public static final int SUPERUSER
| Method Detail |
public String getConnection(String clientInfo,
String language)
throws RemoteException,
GeneralException
clientInfo - the client application name (useful for debugging)language - the language to use for the session (eg for station names)
RemoteException
GeneralException
public String getConnection(String clientInfo,
String language,
String serverUser,
String serverPassword,
int userType)
throws RemoteException,
GeneralException
clientInfo - the client application name (useful for debugging)language - the language to use for the session (eg for station names)serverUser - the username for the brokerserverPassword - the password for the brokeruserType - a constant indicating the kind of user (eg NEWUSER or EXISTINGUSER)
RemoteException
GeneralException
public void disconnect(String sessionID)
throws RemoteException
sessionID - the ID returned by getConnection
RemoteException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||