Package com.portal.bas
Interface PBAServer
- All Superinterfaces:
Remote
- All Known Implementing Classes:
PBAServerImpl
PBAServer
is the BAS server interface.
The BAS server is a simple application server. Its main function
is to serve as a single point of contact for BAS clients to start
their server-side activities, for example, a single name server lookup.
The createConnection
methods create a
PInfranetAppController
for each user session. The
user session in turn uses these connections to create the controllers for
the various client-side components.
Note: In previous releases, these connections also needed valid
Portal logins, but this is no longer required.- Version:
- 6
- Author:
- Larry Lynch-Freshner
-
Method Summary
Modifier and TypeMethodDescriptioncreateConnection
(boolean useConnectionPool) Creates a user session and returns it.createConnection
(PInfranetConnection session) Creates a duplicate ofsession
and returns it.createConnection
(String name, String password, String connectInfo) Deprecated.No replacementGets a newPInfranetConnection
using information stored in the PortalUser.properties file.String[]
Deprecated.No replacementvoid
Logs a request from a client.void
shutDown()
Does necessary clean-up for shut-down.
-
Method Details
-
createDefaultConnection
Gets a newPInfranetConnection
using information stored in the PortalUser.properties file. If the required information is not present in Infranet.properties, the connection to Portal is not made. The connection object returned in this case can still be used to log remotely, and can be used to create controllers.- Returns:
- A new connection.
- Throws:
RemoteException
- thrown in case of failure- See Also:
-
createConnection
PInfranetConnection createConnection(String name, String password, String connectInfo) throws RemoteException Deprecated.No replacementGets a newPInfranetConnection
. Logging in is now handled in a component controller.- Parameters:
name
- a user name for logging in to the serverpassword
- the password associated with the user nameconnectInfo
- the connection information in URL form, which must at a minimum the contain host and port (for example, pcp://host:11960/)- Returns:
- A new connection.
- Throws:
RemoteException
- thrown for errors
-
createConnection
Creates a user session and returns it. A user session does not necessarily have a connection to the Portal server, but for historical reasons it's represented byPInfranetConnection
whose name is misleading.- Parameters:
useConnectionPool
- if true the created user session will get a connection from the connection pool; otherwise, it will use a dedicated connection throughout its life-time- Returns:
- A new user session.
- Throws:
RemoteException
-
createConnection
Creates a duplicate ofsession
and returns it. A user session does not necessarily have a connection to the Portal server, but for historical reasons it's represented byPInfranetConnection
whose name is misleading.- Parameters:
session
- the session to be duplicated- Returns:
- A new user session.
- Throws:
RemoteException
-
shutDown
Does necessary clean-up for shut-down.- Throws:
RemoteException
-
getPossibleConnections
Deprecated.No replacementGets a list of available Portal hosts to connect to.- Returns:
- A
String
array with each element containing an available host and port in Portal connection information format - Throws:
RemoteException
- thrown for errors
-
logRemote
Logs a request from a client.- Parameters:
src
- the source identifier stringmsg
- a message to log- Throws:
RemoteException
- thrown for errors
-