se.kmr.scam.server.test
Class UserInfo
java.lang.Object
se.kmr.scam.server.test.UserInfo
- All Implemented Interfaces:
- CallbackHandler
- public class UserInfo
- extends Object
- implements CallbackHandler
This class is intended to handle all user information needed by the application
including login information. As there should only be one user logged in at a specific
time, the class is implemented as a Singleton
- Author:
- mattias
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserInfo
public UserInfo(String username,
String password)
getUserName
public String getUserName()
- Singleton pattern.
setUserName
public void setUserName(String username)
setPassword
public void setPassword(String password)
getLanguage
public String getLanguage()
setLanguage
public void setLanguage(String newLanguage)
handle
public void handle(Callback[] callbacks)
throws IOException,
UnsupportedCallbackException
- Specified by:
handle
in interface CallbackHandler
- Throws:
IOException
UnsupportedCallbackException
Copyright © 2003 SCAM. All Rights Reserved.