php.java.script
Class InteractivePhpScriptContextFactory
java.lang.Object
   php.java.bridge.http.SimpleContextFactory
php.java.bridge.http.SimpleContextFactory
       php.java.script.PhpScriptContextFactory
php.java.script.PhpScriptContextFactory
           php.java.script.InteractivePhpScriptContextFactory
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, flushBuffer, getBridge, getContext, getId, getSimpleSession, initialize, invalidate, isNew, parseHeader, recycle, recycle, release, releaseManaged, 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(java.lang.String name,
                           short clientIsNew,
                           int timeout)
- Return a session for the JavaBridge
 
- 
- Specified by:
- getSessionin interface- IContextFactory
- Specified by:
- getSessionin interface- IJavaBridgeFactory
- Overrides:
- getSessionin class- SimpleContextFactory
 
- 
- Parameters:
- name- The session name. If name is null, the name PHPSESSION will be used.
- clientIsNew- true if the client wants a new session
- timeout- timeout in seconds. If 0 the session does not expire.
- Returns:
- The session
- See Also:
- ISession