Package com.tangosol.coherence.servlet
Class RandomHttpSessionIdGenerator
- java.lang.Object
-
- com.tangosol.coherence.servlet.RandomHttpSessionIdGenerator
-
- All Implemented Interfaces:
HttpSessionIdGenerator
public class RandomHttpSessionIdGenerator extends Object implements HttpSessionIdGenerator
A default implementation of HttpSessionIdGenerator. It generates session ids for newly created sessions models.- Since:
- Coherence 3.6
- Author:
- jk 2009.08.25
-
-
Constructor Summary
Constructors Constructor Description RandomHttpSessionIdGenerator()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
generateSessionId(int length)
Generate a potential session identifier.
-
-
-
Method Detail
-
generateSessionId
public String generateSessionId(int length)
Generate a potential session identifier. The returned identifier may be in use already.- Specified by:
generateSessionId
in interfaceHttpSessionIdGenerator
- Parameters:
length
- session id length- Returns:
- a potential session identifier
-
-