|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.oracle.siebel.session.SessionTokenManagerDefaultImpl
public class SessionTokenManagerDefaultImpl
Default implementation of the SessionTokenManager interface.
This implementation maintains a Map of ResourcePoolTokenImpl instances.
Constructor Summary | |
---|---|
SessionTokenManagerDefaultImpl()
Default constructor. |
Method Summary | |
---|---|
void |
destroy()
Destroy this manager instance. |
java.lang.String |
getPoolStatus(java.lang.String poolName)
Return the status of the named token pool. |
Token |
getSessionToken(java.lang.String poolName)
Return a Token instance from the named token pool. |
void |
init(java.lang.String name,
toolbox.allegato.XMLProperties xmlProps)
Initialise this manager with the given name and XML configuration properties. |
void |
releaseSessionToken(java.lang.String poolName,
Token leasedToken,
Token reissuedToken)
Place the leased token back into the named pool. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SessionTokenManagerDefaultImpl()
Method Detail |
---|
public void init(java.lang.String name, toolbox.allegato.XMLProperties xmlProps) throws SessionTokenManagerException
init
in interface SessionTokenManager
name
- String containing the name of this manager instance.xmlProps
- XMLProperties instance containing the configuration
properties.
SessionTokenManagerException
- if the manager cannot be
initialised.public Token getSessionToken(java.lang.String poolName) throws SessionTokenManagerException
getSessionToken
in interface SessionTokenManager
poolName
- String containing the name of the resource pool that must
be used to obtain the token.
SessionTokenManagerException
- if the manager cannot return a token.public void releaseSessionToken(java.lang.String poolName, Token leasedToken, Token reissuedToken) throws SessionTokenManagerException
releaseSessionToken
in interface SessionTokenManager
poolName
- String containing the name of the pool to return the
token to.leasedToken
- The token that must be returned to the named pool.reissuedToken
- Token containing a reissued value.
SessionTokenManagerException
- if the manager cannot find the
a named pool.public java.lang.String getPoolStatus(java.lang.String poolName)
getPoolStatus
in interface SessionTokenManager
poolName
- String containing the name of the pool.
public void destroy()
destroy
in interface SessionTokenManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |