|
||||||||||
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 instances
Session
,
Context
,
Context
,
ContextFactory
,
ServletContextFactory
,
PhpScriptContextFactory
Field Summary | |
---|---|
static long |
TIMER_DURATION
Check for expired sessions or contexts every 10 minutes |
Constructor Summary | |
---|---|
SessionFactory()
|
Method Summary | |
---|---|
static void |
destroyTimer()
Only for internal use |
java.lang.ClassLoader |
getClassLoader()
Return the context loader |
IContext |
getContext()
Return the associated context |
SimpleJavaBridgeClassLoader |
getJavaBridgeClassLoader()
Return an instance of the JavaBridgeClassLoader |
ISession |
getSession(boolean clientIsNew,
int timeout)
Return an anonymous session for internal use. |
ISession |
getSession(java.lang.String name,
boolean clientIsNew,
int timeout)
Return a session. |
Methods inherited from class php.java.bridge.JavaBridgeFactory |
---|
destroy, getBridge, isNew, recycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final long TIMER_DURATION
Constructor Detail |
---|
public SessionFactory()
Method Detail |
---|
public SimpleJavaBridgeClassLoader getJavaBridgeClassLoader()
getJavaBridgeClassLoader
in interface IJavaBridgeFactory
getJavaBridgeClassLoader
in class JavaBridgeFactory
Util.getContextClassLoader()
public java.lang.ClassLoader getClassLoader()
public ISession getSession(java.lang.String name, boolean clientIsNew, int timeout)
getSession
in interface IJavaBridgeFactory
getSession
in class JavaBridgeFactory
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 ISession getSession(boolean clientIsNew, int timeout)
getSession
in interface IJavaBridgeFactory
getSession
in class JavaBridgeFactory
clientIsNew
- true if the client wants a new sessiontimeout
- timeout in seconds. If 0 the session does not expire.
public IContext getContext()
getContext
in interface IJavaBridgeFactory
getContext
in class JavaBridgeFactory
ContextFactory.getContext()
public static final void destroyTimer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |