jrun.servlet.session
Interface SessionIdGeneratorServiceMBean

All Superinterfaces:
java.io.Serializable, Service, ServiceMBean
All Known Subinterfaces:
SessionIdGenerator

public interface SessionIdGeneratorServiceMBean
extends ServiceMBean

The MBean interface for the JRun session ID generation service.

Author:
Karl Moss

Fields inherited from interface jrunx.kernel.Service
INITIALIZED, STARTED, STARTING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 java.lang.String generateSessionId()
          Generates a unique session ID
 java.lang.String generateSessionId(java.lang.String startWith, java.lang.String endWith)
          Generates a unique session ID.
 SessionIdGenerator getSessionIdGenerator()
          Returns a direct reference to the generation service
 void removeSessionId(java.lang.String id)
          Remove session id from cache
 
Methods inherited from interface jrunx.kernel.ServiceMBean
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind
 
Methods inherited from interface jrunx.kernel.Service
destroy, getStatus, init, start, stop, updateStatus
 

Method Detail

generateSessionId

public java.lang.String generateSessionId()
Generates a unique session ID
Returns:
The session ID

generateSessionId

public java.lang.String generateSessionId(java.lang.String startWith,
                                          java.lang.String endWith)
Generates a unique session ID. The servlet engine may require a specific beginning and ending of the sessionID for connector communication. These Strings MUST be prepended and appended to the sessionId.
Parameters:
String - add this to the beginning of the session ID
String - add this to the end of the session ID
Returns:
The session ID

removeSessionId

public void removeSessionId(java.lang.String id)
Remove session id from cache

getSessionIdGenerator

public SessionIdGenerator getSessionIdGenerator()
Returns a direct reference to the generation service
Returns:
The session generation service


Copyright � 2002 Macromedia Corporation. All Rights Reserved.