php.java.script
Class PhpCompiledScriptContext

java.lang.Object
  extended by php.java.script.PhpScriptContextDecorator
      extended by php.java.script.PhpCompiledScriptContext
All Implemented Interfaces:
ScriptContext, IContext, IManaged, Invocable, IPhpScriptContext

public class PhpCompiledScriptContext
extends PhpScriptContextDecorator

A decorator for compiled script engines. Only for internal use.

Author:
jostb

Field Summary
 
Fields inherited from interface php.java.bridge.http.IContext
ENGINE_SCOPE, GLOBAL_SCOPE, JAVA_BRIDGE, PHP_PROCEDURE, SERVLET, SERVLET_CONFIG, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE
 
Fields inherited from interface javax.script.ScriptContext
ENGINE_SCOPE, GLOBAL_SCOPE
 
Constructor Summary
PhpCompiledScriptContext(IPhpScriptContext ctx)
          Create a new PhpCompiledScriptContext using an existing PhpScriptContext
 
Method Summary
 Continuation createContinuation(java.io.Reader reader, java.util.Map env, java.io.OutputStream out, java.io.OutputStream err, HeaderParser headerParser, ResultProxy result, ILogger logger, boolean isCompiled)
          Create a continuation
 
Methods inherited from class php.java.script.PhpScriptContextDecorator
call, get, getAll, getAttribute, getAttribute, getAttributesScope, getBindings, getContextServer, getContinuation, getErrorWriter, getHttpServletRequest, getHttpServletResponse, getReader, getRealPath, getRedirectString, getRedirectString, getRedirectURL, getScopes, getServlet, getServletConfig, getServletContext, getSocketName, getWriter, init, onShutdown, put, putAll, remove, removeAttribute, setAttribute, setBindings, setContinuation, setErrorWriter, setReader, setWriter, startContinuation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhpCompiledScriptContext

public PhpCompiledScriptContext(IPhpScriptContext ctx)
Create a new PhpCompiledScriptContext using an existing PhpScriptContext

Parameters:
ctx - the script context to be decorated
Method Detail

createContinuation

public Continuation createContinuation(java.io.Reader reader,
                                       java.util.Map env,
                                       java.io.OutputStream out,
                                       java.io.OutputStream err,
                                       HeaderParser headerParser,
                                       ResultProxy result,
                                       ILogger logger,
                                       boolean isCompiled)
Create a continuation

Specified by:
createContinuation in interface IPhpScriptContext
Overrides:
createContinuation in class PhpScriptContextDecorator
Parameters:
reader - the script reader
env - the environment passed to php
out - the fcgi output stream
err - the fcgi error stream
headerParser - fcgi header parser
result - the result proxy
logger - the logger
isCompiled - create a continuation for a compiled or non-compiled script engine
Returns:
the Continuation