|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 an authenticated Session object to allow interaction with the server. |
Session |
openSessionWithProxy(URL url,
String userid,
String password,
ProxyInfo proxyInfo)
Create an authenticated Session object to allow interaction with the server. |
Method Detail |
---|
Session openSession(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 the server hosting the application instanceuserid
- userid of the user who is creating the sessionpassword
- password of the user who is creating the session
AuthenticationException
- if the credentials were incorrectSession openSessionWithProxy(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 the server hosting the application instanceuserid
- userid of the user who is creating the sessionpassword
- password of the user who is creating the session
AuthenticationException
- if the credentials were incorrect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |