php.java.script
Class InteractivePhpScriptContextFactory
java.lang.Object
php.java.bridge.http.SimpleContextFactory
php.java.script.PhpScriptContextFactory
php.java.script.InteractivePhpScriptContextFactory
- All Implemented Interfaces:
- IContextFactory, IContextFactoryVisitor, IJavaBridgeFactory
public class InteractivePhpScriptContextFactory
- extends PhpScriptContextFactory
A custom context factory, creates a ContextFactory for JSR223 contexts. sessions do not expire.
- Author:
- jostb
Methods inherited from class php.java.bridge.http.SimpleContextFactory |
destroy, getBridge, getClassLoader, getContext, getId, getJavaBridgeClassLoader, getSession, initialize, invalidate, isNew, recycle, recycle, release, releaseManaged, setClassLoader, setContext, toString, visit, waitFor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InteractivePhpScriptContextFactory
public InteractivePhpScriptContextFactory()
addNew
public static IContextFactory addNew(IContext context)
- Add the PhpScriptContext
- Parameters:
context
-
- Returns:
- The ContextFactory.
getSession
public ISession getSession(boolean clientIsNew,
int timeout)
-
- Specified by:
getSession
in interface IJavaBridgeFactory
- Overrides:
getSession
in class SimpleContextFactory
- Parameters:
clientIsNew
- true if the client wants a new sessiontimeout
- timeout in seconds. If 0 the session does not expire.
- Returns:
- The session