public class PPooledConnectionClientServices extends PClientServices
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.mBAServer, mConnection, mCSHManager, mDefaults, mHelp, mHelpSet, mPool, mResources, RESKEY| Constructor and Description |
|---|
PPooledConnectionClientServices()
Creates an instance of
PPooledConnectionClientServices. |
PPooledConnectionClientServices(PClientServices pCS)
Creates a default instance of the services object from an existing client
service.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeAllConnections()
Closes all the connections in the pool.
|
boolean |
doLogin(String name,
String password,
String connectInfo)
Logs into an Portal server.
|
Object |
doLoginForConnection(String name,
String password,
String connectInfo)
Deprecated.
|
PInfranetAppControllerImpl |
getAppController() |
Properties |
getDefaultProperties()
Gets the default properties.
|
Component |
getMainPane()
Does nothing, returns
null. |
PBAServer |
getServer()
Gets a reference to the
PBAServer implementation. |
protected boolean |
lastChanceLogin()
Creates a connection-pooling user session if one is not established yet.
|
void |
releaseConnection()
Deprecated.
|
void |
releaseConnection(Object key)
Deprecated.
|
void |
setCurrentConnectionKey(Object key)
Deprecated.
|
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, unregisterComponentpublic PPooledConnectionClientServices()
PPooledConnectionClientServices.public PPooledConnectionClientServices(PClientServices pCS) throws RemoteException
pCS - existing client serviceRemoteExceptionpublic Component getMainPane()
null.getMainPane in class PClientServicesnull.PAppletServices,
PBuilderServices,
PApplicationServicespublic Object doLoginForConnection(String name, String password, String connectInfo)
name - the user's login namepassword - the user's passwordconnectInfo - a string that contains connection information in URL
format, for example, "protocol://host:port"public boolean doLogin(String name, String password, String connectInfo)
doLogin in class PClientServicesname - the user's login namepassword - the user's passwordconnectInfo - a string that contains connection information in URL
format, for example, "protocol://host:port"public void setCurrentConnectionKey(Object key) throws NoSuchElementException, RemoteException
public void releaseConnection(Object key) throws NoSuchElementException
NoSuchElementExceptionpublic void releaseConnection()
public void closeAllConnections()
throws RemoteException
RemoteExceptionprotected boolean lastChanceLogin()
throws RemoteException
lastChanceLogin in class PClientServicestrue if a user session is established, otherwise,
false.RemoteException - thrown for errorspublic Properties getDefaultProperties()
getDefaultProperties in class PClientServicespublic PBAServer getServer()
PBAServer implementation.getServer in class PClientServicespublic PInfranetAppControllerImpl getAppController()
Copyright © 2003, 2023, Oracle and/or its affiliates.