php.java.bridge
Class SessionFactory
java.lang.Object
php.java.bridge.JavaBridgeFactory
php.java.bridge.SessionFactory
- All Implemented Interfaces:
- IJavaBridgeFactory
- Direct Known Subclasses:
- ContextFactory
public class SessionFactory
- extends JavaBridgeFactory
Create new session or context instances
- Author:
- jostb
- See Also:
Session,
Context,
Context,
ContextFactory,
ServletContextFactory,
PhpScriptContextFactory
|
Field Summary |
static long |
TIMER_DURATION
Check for expired sessions or contexts every 10 minutes |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TIMER_DURATION
public static final long TIMER_DURATION
- Check for expired sessions or contexts every 10 minutes
- See Also:
- Constant Field Values
SessionFactory
public SessionFactory()
getJavaBridgeClassLoader
public SimpleJavaBridgeClassLoader getJavaBridgeClassLoader()
- Description copied from class:
JavaBridgeFactory
- Return an instance of the JavaBridgeClassLoader
- Specified by:
getJavaBridgeClassLoader in interface IJavaBridgeFactory- Specified by:
getJavaBridgeClassLoader in class JavaBridgeFactory
- Returns:
- The JavaBridgeClassLoader
- See Also:
Util.getContextClassLoader()
getClassLoader
public java.lang.ClassLoader getClassLoader()
getSession
public ISession getSession(java.lang.String name,
boolean clientIsNew,
int timeout)
- Description copied from class:
JavaBridgeFactory
- Return a session for the JavaBridge
- Specified by:
getSession in interface IJavaBridgeFactory- Specified by:
getSession in class JavaBridgeFactory
- Parameters:
name - The session name. If name is null, the name PHPSESSION will be used.clientIsNew - true if the client wants a new sessiontimeout - timeout in seconds. If 0 the session does not expire.
- Returns:
- The session
- See Also:
ISession
getContext
public IContext getContext()
- Return the associated context
- Specified by:
getContext in interface IJavaBridgeFactory- Specified by:
getContext in class JavaBridgeFactory
- Returns:
- Always null
- See Also:
ContextFactory.getContext()