|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sas.hls.client.SessionFactory
public final class SessionFactory
Entry point into the API, this will create an authenticated session with the server instance.
Use the newSession(URL, String, String)
method to begin a Session
. With that Session you are
connected to a server and have access to a number of services (retrieved via the ServiceManager
).
Use the newSessionWithProxy(URL, String, String, ProxyInfo)
method to begin a Session
. With that Session you are
connected to a server and have access to a number of services (retrieved via the ServiceManager
).
Field Summary | |
---|---|
static String |
SESSION_STRATEGY_SYSTEM_PROPERTY
System property designating the session strategy instance to be used when creating and initializing Session objects. |
Method Summary | |
---|---|
static Session |
newSession(URL url,
String userid,
String password)
Create an authenticated Session object to allow interaction with the server. |
static Session |
newSessionWithProxy(URL url,
String userId,
String password,
ProxyInfo proxyInfo)
Create an authenticated Session object to allow interaction with the server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SESSION_STRATEGY_SYSTEM_PROPERTY
SessionStrategy
for more information on this customization capability
Method Detail |
---|
public static Session newSession(URL url, String userid, String password) throws AuthenticationException
Session
object to allow interaction with the server. This method uses the
specified server URL and credentials when establishing the connection.
url
- url of machine hosting the SAS Drug Development instanceuserid
- userid of the user who is creating the sessionpassword
- password of the user who is creating the session
AuthenticationException
- if the credentials were incorrectpublic static Session newSessionWithProxy(URL url, String userId, String password, ProxyInfo proxyInfo) throws AuthenticationException
Session
object to allow interaction with the server. This method uses the
specified server URL, credentials and proxy server information when establishing the connection. This method
should only be used when a proxy server is required to access the specified server URL.
url
- url of machine hosting the SAS Drug Development instanceuserId
- user id of the user who is creating the sessionpassword
- password of the user who is creating the sessionproxyInfo
- proxy information required to access the url
AuthenticationException
- if the credentials were incorrect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |