com.sas.hls.client
Interface SessionStrategy


public interface SessionStrategy

Strategy interface which allows consumers the ability to create Session instances. It is not expected that most consumers will provide alternate SessionStrategy implementations, but if required, this allows customization of Session lifecycles.

Note if a session timeout occurs or the session is no longer available, a org.springframework.remoting.RemoteAccessException will be thrown on any API service method call.


Method Summary
 Session openSession(URL url, String userid, String password)
          Create a new authenticated session using the specified server URL.
 

Method Detail

openSession

Session openSession(URL url,
                    String userid,
                    String password)
                    throws AuthenticationException
Create a new authenticated session using the specified server URL.

Parameters:
url - url of the server hosting the application instance
userid - userid of the user who is creating the session
password - password of the user who is creating the session
Returns:
a fully initialized session object
Throws:
AuthenticationException - if the credentials were incorrect


Copyright (c) 2013, SAS Institute Inc., Cary, NC, USA