jrun.servlet.session
Class SessionIdGeneratorService
jrunx.kernel.ServiceAdapter
|
+--jrun.servlet.session.SessionIdGeneratorService
- All Implemented Interfaces:
- javax.naming.Referenceable, java.io.Serializable, Service, ServiceMBean, SessionIdGenerator, SessionIdGeneratorServiceMBean
- public class SessionIdGeneratorService
- extends ServiceAdapter
- implements SessionIdGenerator
The JRun session ID generation service.
- Author:
- Karl Moss
- See Also:
- Serialized Form
| Fields inherited from class jrunx.kernel.ServiceAdapter |
DEFAULT_DEACTIVATED, DEFAULT_DOMAIN, DOMAIN_NAME_SEPARATOR, DOMAIN_NAME_SUFFIX, domainName, jndiBindable, LOGGER_CACHE_TIME, SCHEDULER_SERVICE, SECURITY_MANAGER, server, status, TRANSACTION_MANAGER |
| Methods inherited from class jrunx.kernel.ServiceAdapter |
bind, destroy, findObjectInstance, findObjectInstance, findObjectInstance, getBindToJNDI, getDeactivated, getDomainName, getDomainSearchPath, getJRunService, getLogger, getName, getParentService, getReference, getResourceManager, getServerName, getServerProperties, getStatus, init, invokeMethod, isInPartition, isPartition, lookup, postDeregister, postRegister, preDeregister, preRegister, requestServer, scheduleRunnable, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, start, stop, toString, unbind, unscheduleRunnable, updateStatus |
| Methods inherited from interface jrunx.kernel.ServiceMBean |
bind, getBindToJNDI, getDeactivated, getDomainName, getJRunService, getLogger, getName, getParentService, getServerName, requestServer, setBindToJNDI, setDeactivated, setDomainName, setName, setParentService, unbind |
SessionIdGeneratorService
public SessionIdGeneratorService()
generateSessionId
public java.lang.String generateSessionId()
- Description copied from interface:
SessionIdGeneratorServiceMBean
- Generates a unique session ID
- Specified by:
generateSessionId in interface SessionIdGeneratorServiceMBean
- Following copied from interface:
jrun.servlet.session.SessionIdGeneratorServiceMBean
- Returns:
- The session ID
generateSessionId
public java.lang.String generateSessionId(java.lang.String startsWith,
java.lang.String endsWith)
- Description copied from interface:
SessionIdGeneratorServiceMBean
- 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.
- Specified by:
generateSessionId in interface SessionIdGeneratorServiceMBean
- Following copied from interface:
jrun.servlet.session.SessionIdGeneratorServiceMBean
- Parameters:
String - add this to the beginning of the session IDString - add this to the end of the session ID- Returns:
- The session ID
removeSessionId
public void removeSessionId(java.lang.String id)
- Description copied from interface:
SessionIdGeneratorServiceMBean
- Remove session id from cache
- Specified by:
removeSessionId in interface SessionIdGeneratorServiceMBean
getSessionIdGenerator
public SessionIdGenerator getSessionIdGenerator()
- Description copied from interface:
SessionIdGeneratorServiceMBean
- Returns a direct reference to the generation service
- Specified by:
getSessionIdGenerator in interface SessionIdGeneratorServiceMBean
- Following copied from interface:
jrun.servlet.session.SessionIdGeneratorServiceMBean
- Returns:
- The session generation service
Copyright � 2002 Macromedia Corporation. All Rights Reserved.