Package com.portal.bas
Class PPooledConnectionClientServices
java.lang.Object
com.portal.bas.PClientServices
com.portal.bas.PPooledConnectionClientServices
PPooledConnectionClientService
is a version of
PApplicationServices
for applications that need to
handle many sessions simultaniously, for example, WebKit. The primary
difference from PApplicationServices
is its facility for managing
multiple BAS connections instead of just one.-
Field Summary
Fields inherited from class com.portal.bas.PClientServices
mBAServer, mConnection, mCSHManager, mDefaults, mHelp, mHelpSet, mPool, mResources, RESKEY
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance ofPPooledConnectionClientServices
.Creates a default instance of the services object from an existing client service. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Closes all the connections in the pool.boolean
Logs into an Portal server.doLoginForConnection
(String name, String password, String connectInfo) Deprecated.Gets the default properties.Does nothing, returnsnull
.Gets a reference to thePBAServer
implementation.protected boolean
Creates a connection-pooling user session if one is not established yet.void
Deprecated.void
releaseConnection
(Object key) Deprecated.void
Deprecated.Methods inherited from class com.portal.bas.PClientServices
addResourceBundle, confirmationMsg, confirmationMsg, confirmationMsg, confirmationMsg, connect, createClass, createClientException, createController, createDialogClass, createModelHandle, createNewModel, doLogin, doLogout, errorMsg, errorMsg, errorMsg, errorMsg, getClassToInstantiate, getContext, getCSHManager, getDefaultBook, getHelpObj, getModelField, getPermissionFor, getResource, getResources, getRestrictionOn, getUserPreferences, init, initHelp, invokeInThread, invokeInThread, isConnectedToInfranet, loadImageIcon, loadImageIcon, logRemote, mergeHelp, registerApp, registerComponent, registerHelpButton, registerHelpIDFor, releaseContext, saveUserPreferences, setModelField, setPropertyURL, setPropertyURL, setUserPreferences, unregisterComponent
-
Constructor Details
-
PPooledConnectionClientServices
public PPooledConnectionClientServices()Creates an instance ofPPooledConnectionClientServices
. -
PPooledConnectionClientServices
Creates a default instance of the services object from an existing client service.- Parameters:
pCS
- existing client service- Throws:
RemoteException
-
-
Method Details
-
getMainPane
Does nothing, returnsnull
.- Specified by:
getMainPane
in classPClientServices
- Returns:
null
.- See Also:
-
doLoginForConnection
Deprecated.Logs into an Portal server.- Parameters:
name
- the user's login namepassword
- the user's passwordconnectInfo
- a string that contains connection information in URL format, for example, "protocol://host:port"- Returns:
- A connection to BAS.
-
doLogin
Logs into an Portal server.- Overrides:
doLogin
in classPClientServices
- Parameters:
name
- the user's login namepassword
- the user's passwordconnectInfo
- a string that contains connection information in URL format, for example, "protocol://host:port"- Returns:
- True if login succeeds; false otherwise.
-
setCurrentConnectionKey
Deprecated.Does nothing. -
releaseConnection
Deprecated.Does nothing.- Throws:
NoSuchElementException
-
releaseConnection
public void releaseConnection()Deprecated.Does nothing. -
closeAllConnections
Closes all the connections in the pool.- Throws:
RemoteException
-
lastChanceLogin
Creates a connection-pooling user session if one is not established yet.- Overrides:
lastChanceLogin
in classPClientServices
- Returns:
true
if a user session is established, otherwise,false
.- Throws:
RemoteException
- thrown for errors
-
getDefaultProperties
Gets the default properties. These can include properties specified in the applet's "param" spec.- Specified by:
getDefaultProperties
in classPClientServices
- Returns:
- The default properties.
-
getServer
Gets a reference to thePBAServer
implementation.- Specified by:
getServer
in classPClientServices
- Returns:
- A stub to the BAS server.
-
getAppController
-