php.java.script
Class InteractivePhpScriptContextFactory

java.lang.Object
  extended by php.java.bridge.http.SimpleContextFactory
      extended by php.java.script.PhpScriptContextFactory
          extended by 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

Constructor Summary
InteractivePhpScriptContextFactory()
           
 
Method Summary
static IContextFactory addNew(IContext context)
          Add the PhpScriptContext
 ISession getSession(java.lang.String name, short clientIsNew, int timeout)
          Return a session for the JavaBridge
 
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
 

Constructor Detail

InteractivePhpScriptContextFactory

public InteractivePhpScriptContextFactory()
Method Detail

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:
getSession in interface IContextFactory
Specified by:
getSession in interface IJavaBridgeFactory
Overrides:
getSession in 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