|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectphp.java.bridge.JavaBridgeFactory
php.java.bridge.SessionFactory
public class SessionFactory
Create new session or context instances
Session
,
Context
,
Context
,
ContextFactory
,
ServletContextFactory
,
PhpScriptContextFactory
Field Summary | |
---|---|
static long |
TIMER_DURATION
Check for expired sessions or contexts every 10 minutes |
static long |
TIMER_FREQ
Deprecated. Use TIMER_DURATION |
Constructor Summary | |
---|---|
SessionFactory()
|
Method Summary | |
---|---|
void |
destroy()
Destroy the factory |
java.lang.ClassLoader |
getClassLoader()
Return an instance of the current thread context class loader. |
IContext |
getContext()
Return the associated context |
SimpleJavaBridgeClassLoader |
getJavaBridgeClassLoader()
Return an instance of the JavaBridgeClassLoader |
ISession |
getSession(java.lang.String name,
boolean clientIsNew,
int timeout)
|
void |
recycle()
Recycle the factory for new reqests. |
Methods inherited from class php.java.bridge.JavaBridgeFactory |
---|
getBridge |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long TIMER_DURATION
public static final long TIMER_FREQ
TIMER_DURATION
Constructor Detail |
---|
public SessionFactory()
Method Detail |
---|
public SimpleJavaBridgeClassLoader getJavaBridgeClassLoader()
JavaBridgeFactory
getJavaBridgeClassLoader
in class JavaBridgeFactory
public java.lang.ClassLoader getClassLoader()
JavaBridgeFactory
getClassLoader
in class JavaBridgeFactory
public ISession getSession(java.lang.String name, boolean clientIsNew, int timeout)
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.
ISession
public IContext getContext()
ContextFactory.getContext()
public void recycle()
public void destroy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |