php.java.script.servlet
Class InvocablePhpServletContextFactory
java.lang.Object
php.java.bridge.http.SimpleContextFactory
php.java.servlet.SimpleServletContextFactory
php.java.script.servlet.InvocablePhpServletContextFactory
- All Implemented Interfaces:
- IContextFactory, IContextFactoryVisitor, IJavaBridgeFactory
public class InvocablePhpServletContextFactory
- extends SimpleServletContextFactory
A custom context factory, creates a ContextFactory for JSR223 contexts.
This context factory waits for the script continuation. Use the PhpServletContextFactory if
you don't want to call php methods from Java.
- Author:
- jostb
- See Also:
SimpleContextFactory.initialize()
,
SimpleContextFactory.releaseManaged()
,
PhpServletContextFactory
Method Summary |
static IContextFactory |
addNew(IContext context,
javax.servlet.Servlet servlet,
javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Add the PhpScriptContext |
Methods inherited from class php.java.bridge.http.SimpleContextFactory |
getBridge, getClassLoader, getContext, getId, getJavaBridgeClassLoader, getSession, initialize, invalidate, isNew, recycle, recycle, release, releaseManaged, setClassLoader, setContext, visit, waitFor |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
addNew
public static IContextFactory addNew(IContext context,
javax.servlet.Servlet servlet,
javax.servlet.ServletContext ctx,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
- Add the PhpScriptContext
- Parameters:
context
- The passed contextservlet
- The servletctx
- The servlet contextreq
- The servlet requestres
- The servlet response
- Returns:
- The ContextFactory.