toolbox.oracle.siebel.session.services
Class SiebelSessionTokenServiceImpl

java.lang.Object
  extended by toolbox.services.BaseService
      extended by toolbox.oracle.siebel.session.services.SiebelSessionTokenServiceImpl
All Implemented Interfaces:
SiebelSessionTokenService, toolbox.services.Service

public class SiebelSessionTokenServiceImpl
extends toolbox.services.BaseService
implements SiebelSessionTokenService

Default implementation of the SiebelSessionTokenService interface.

Author:
Hannes Holtzhausen

Constructor Summary
SiebelSessionTokenServiceImpl()
          Default constructor.
 
Method Summary
 void create(java.lang.String name, java.lang.String confHome, toolbox.services.ServiceEnvironment env, toolbox.allegato.XMLProperties xmlProps)
          Create the service by obtaining a reference to the SessionTokenManager in the provided environment.
 void destroy()
          Destroy service instance.
 TokenMessage getSessionToken(TokenMessage message)
          Obtain a session token using the details in the provided TokenMessage.
 void releaseSessionToken(TokenMessage message)
          Return the leased session token contained in the provided TokenMessage.
 void setSessionTokenIndex(SessionTokenIndex index)
          Injection point for the SessionTokenIndex dependency.
 
Methods inherited from class toolbox.services.BaseService
getConfigHome, getName, getProperties, getProperty, getXMLProperties, logConfig, logFine, logFiner, logFinest, logInfo, logSevere, logWarning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SiebelSessionTokenServiceImpl

public SiebelSessionTokenServiceImpl()
Default constructor.

Method Detail

create

public void create(java.lang.String name,
                   java.lang.String confHome,
                   toolbox.services.ServiceEnvironment env,
                   toolbox.allegato.XMLProperties xmlProps)
            throws toolbox.services.ServiceException
Create the service by obtaining a reference to the SessionTokenManager in the provided environment.

Specified by:
create in interface toolbox.services.Service
Overrides:
create in class toolbox.services.BaseService
Parameters:
name - The name of this service.
confHome - The path to the configuration home directory.
env - The service environment for this service.
xmlProps - XML configuration properties.
Throws:
toolbox.services.ServiceException - if this service cannot be created.

getSessionToken

public TokenMessage getSessionToken(TokenMessage message)
Obtain a session token using the details in the provided TokenMessage.

Specified by:
getSessionToken in interface SiebelSessionTokenService
Parameters:
message - TokenMessage instance.

releaseSessionToken

public void releaseSessionToken(TokenMessage message)
Return the leased session token contained in the provided TokenMessage.

Specified by:
releaseSessionToken in interface SiebelSessionTokenService
Parameters:
message - TokenMessage containing the token that must be returned.

setSessionTokenIndex

public void setSessionTokenIndex(SessionTokenIndex index)
Injection point for the SessionTokenIndex dependency.

Parameters:
index - SessionTokenIndex instance.

destroy

public void destroy()
Destroy service instance.

Specified by:
destroy in interface toolbox.services.Service
Overrides:
destroy in class toolbox.services.BaseService