|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.teamserver.client.IlrRemoteSessionFactory
public class IlrRemoteSessionFactory
A remote implementation of a session factory.
Constructor Summary | |
---|---|
IlrRemoteSessionFactory()
|
Method Summary | |
---|---|
void |
connect(AuthenticationCredentials credentials,
String url,
String datasource)
Establishes a connection to Decision Center. |
void |
connect(String username,
String password,
String url,
String dataSourceName)
Connects the given user to Decision Center. |
IlrSession |
getSession()
Returns the session created by the connection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IlrRemoteSessionFactory()
Method Detail |
---|
public IlrSession getSession()
IlrSessionFactory
getSession
in interface IlrSessionFactory
null
if no user is connected or if the connection failed.public void connect(AuthenticationCredentials credentials, String url, String datasource) throws IlrConnectException
IlrSessionFactory
AuthenticationHandler
that is responsible for the connection.
You have two options to set the handler:
AuthenticationCredentials.AuthenticationHandlerClassname
as authentication details of the credentials
with the fully qualified name of the implementation of AuthenticationHandler
.AuthenticationHandler
.
Once connected, getSession
will return a session
associated with this user.
connect
in interface IlrSessionFactory
IlrConnectException
- If the connection failed.credentials
- The credentials to use for the connection.url
- The URL of the application server.datasource
- The name of the data source. If null
, the default name is
jdbc/ilogDataSource
.IlrSession.getUserName()
,
AuthenticationCredentials
,
AuthenticationHandler
public void connect(String username, String password, String url, String dataSourceName) throws IlrConnectException
IlrSessionFactory
Once connected, getSession
will return a session
associated with this user.
connect
in interface IlrSessionFactory
IlrConnectException
- If the connection failed.username
- The user name.password
- The user password.url
- The URL of the application server.dataSourceName
- The name of the data source. If null
, the default name is
jdbc/ilogDataSource
.IlrSession.getUserName()
|
Decision Center API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |