public class TdbPooledSession extends TdbSession
Modifier and Type | Method and Description |
---|---|
void |
login(java.lang.String username,
java.lang.String password)
Invalid operation for a pooled session
|
void |
login(java.lang.String username,
java.lang.String password,
TdbLanguage language,
boolean restart)
Invalid operation for a pooled session
|
void |
logout()
Returns the session to the pool for reuse
|
void |
logout(boolean save)
Returns the session to the pool for reuse
|
authenticate, dateforms, enableLogging, enableNotification, enableNotification, fieldTypes, getActivityLog, getApiKeyMode, getBackgroundTaskSink, getBuildNumber, getCharacterSet, getCharacterSetName, getControlCache, getCurrentDateform, getDateform, getDefaultQueueName, getDefinedViews, getFieldType, getFieldType, getNotificationSink, getPid, getRevisionNumber, getServerApiLog, getServerName, getServerXpiLog, getSessionId, getSessionType, getSubsystemID, getSubsystemName, getUsername, getVersion, hasLogCheckpoint, isApiLogEnabled, isConnected, isFileManager, isLicensedFor, isLoggedIn, isSystemManager, isTicketsEnabled, isTokensEnabled, isUserManager, isWorking, isXpiLogEnabled, licensedProducts, refreshAccessToken, requestAccessToken, requestLoginTicket, revokeLoginTicket, revokeToken, revokeTokens, setActivityLog, setBackgroundTaskSink, setLogCheckpoint, setNotificationSink, subsystemNames, supportsFeature, validate, writeActivityLog
codeList, getLastCode, getLastMessage, hasMessages, messageList, resetMessages
cancel, getSession, isCancelable, setCancelable
public void login(java.lang.String username, java.lang.String password) throws TdbException
login
in class TdbSession
username
- The TRIP username to usepassword
- The TRIP password to useTdbException
To log in with an access token, pass the access token string as the
password. If token based login requires an API key, pass the API key
string as the username. Otherwise, pass an empty string as the username.
An API key is required if the getApiKeyMode() method returns
TdbApiKeyMode.Always.
To log in with a login ticket, pass an empty string as the username
and the ticket as the password. Note that login tickets have been superseded
by access token as per version 8.3-2 of TRIPjxp.
This method causes network I/O.
public void login(java.lang.String username, java.lang.String password, TdbLanguage language, boolean restart) throws TdbException
login
in class TdbSession
username
- The TRIP username to usepassword
- The TRIP password to use (this gets encrypted for transmission)language
- The CCL language dialect to userestart
- If set high, signal TRIP to attempt to restart from a previous sessionTdbException
To log in with an access token, pass the access token string as the
password. If token based login requires an API key, pass the API key
string as the username. Otherwise, pass an empty string as the username.
An API key is required if the getApiKeyMode() method returns
TdbApiKeyMode.Always.
To log in with a login ticket, pass an empty string as the username
and the ticket as the password. Note that login tickets have been superseded
by access tokens as per version 8.3-2 of TRIPjxp!
This method causes network I/O.
public void logout() throws TdbException
logout
in class TdbSession
TdbException
public void logout(boolean save) throws TdbException
logout
in class TdbSession
save
- This parameter is ignored for pooled sessionsTdbException