com.sas.drugdev.remote.session
Class SessionFactory
java.lang.Object
com.sas.drugdev.remote.session.SessionFactory
- public class SessionFactory
- extends java.lang.Object
Entry point into the API. Use the newSession(URL, Credentials)
method to start things off and retrieve an instance of a Session
. Use that Session then
to connect to a server and look up the ServiceManager
.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionFactory
public SessionFactory()
newSession
public static Session newSession(java.net.URL url,
Credentials credentials)
throws AuthenticationException,
PasswordExpiredException,
UserInactiveException,
UserRetiredException,
RemoteException,
UnsupportedCredentialsException
- Create and authenticate the
Session
. Currently the only supported type of
Credentials are UsernamePasswordCredentials
.
- Parameters:
url
- url to the SDD instancecredentials
- credentials of the user who is creating the session
- Returns:
- a fully initialized session object
- Throws:
AuthenticationException
- if the username/password combination were incorrect
PasswordExpiredException
- if the user's password has expired
UserInactiveException
- if the user's account is inactive
UserRetiredException
- if the user's account has been retired
UnsupportedCredentialsException
- if the credentials passed in aren't supported
RemoteException
- if a server or transport error occurs