public class IlrRemoteSessionFactory extends java.lang.Object implements IlrSessionFactory
| Constructor and Description |
|---|
IlrRemoteSessionFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(AuthenticationCredentials credentials,
java.lang.String url,
java.lang.String datasource)
Deprecated.
|
IlrSession |
connect(java.lang.String url,
java.lang.String datasource,
RemoteConnectionContext context)
Establishes a connection to Decision Center.
|
void |
connect(java.lang.String username,
java.lang.String password,
java.lang.String url,
java.lang.String datasource)
Connects the given user to Decision Center.
|
IlrSession |
getSession()
Returns the session created by the connection.
|
public IlrSession getSession()
IlrSessionFactorygetSession in interface IlrSessionFactorynull if no user is connected or if the connection failed.public void connect(java.lang.String username,
java.lang.String password,
java.lang.String url,
java.lang.String datasource)
throws IlrConnectException
IlrSessionFactory
Once connected, getSession will return a session
associated with this user.
connect in interface IlrSessionFactoryIlrConnectException - If the connection failed.username - The user name.password - The user password.url - The URL of the application server.datasource - The name of the data source. If null, the default name is
jdbc/ilogDataSource.IlrSession.getUserName()@Deprecated public void connect(AuthenticationCredentials credentials, java.lang.String url, java.lang.String datasource) throws IlrConnectException
IlrSessionFactoryAuthenticationHandler 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 IlrSessionFactoryIlrConnectException - 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,
AuthenticationHandlerpublic IlrSession connect(java.lang.String url, java.lang.String datasource, RemoteConnectionContext context) throws IlrConnectException
IlrSessionFactoryconnect in interface IlrSessionFactoryIlrConnectException - if the connection failed.url - The URL of the application server.datasource - The name of the data source. If null, the default name is jdbc/ilogDataSource.context - The context to use to connect to Decision CenterRemoteConnectionContext© Copyright IBM Corp. 1987, 2017