php.java.script
Interface IPhpScriptContext

All Superinterfaces:
IContext, IManaged, Invocable, ScriptContext
All Known Implementing Classes:
AbstractPhpScriptContext, PhpCompiledScriptContext, PhpHttpScriptContext, PhpJavaBridgeRunnerScriptContext, PhpScriptContext, PhpScriptContextDecorator, PhpSecureScriptContext

public interface IPhpScriptContext
extends IManaged, Invocable, IContext, ScriptContext

Common methods for all PHP ScriptContexts

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
 
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
 ContextServer getContextServer()
          Get the context server associated with this context, usually a HttpServer (JavaBridgeRunner) or a ContextServer from a ContextLoaderListener
 Continuation getContinuation()
          Get the php continuation
 void setContinuation(Continuation kont)
          Set the php continuation
 void startContinuation()
          Start the current continuation using a context-specific thread pool
 
Methods inherited from interface php.java.bridge.IManaged
init, onShutdown
 
Methods inherited from interface php.java.bridge.Invocable
call
 
Methods inherited from interface php.java.bridge.http.IContext
get, getAll, getAttribute, getAttribute, getAttributesScope, getHttpServletRequest, getHttpServletResponse, getRealPath, getRedirectString, getRedirectString, getRedirectURL, getServlet, getServletConfig, getServletContext, getSocketName, getWriter, put, putAll, remove, removeAttribute, setAttribute
 
Methods inherited from interface javax.script.ScriptContext
getAttribute, getAttribute, getAttributesScope, getBindings, getErrorWriter, getReader, getScopes, getWriter, removeAttribute, setAttribute, setBindings, setErrorWriter, setReader, setWriter
 

Method Detail

setContinuation

void setContinuation(Continuation kont)
Set the php continuation

Parameters:
kont - The continuation.

getContinuation

Continuation getContinuation()
Get the php continuation

Returns:
The HttpProxy

createContinuation

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

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

startContinuation

void startContinuation()
Start the current continuation using a context-specific thread pool


getContextServer

ContextServer getContextServer()
Get the context server associated with this context, usually a HttpServer (JavaBridgeRunner) or a ContextServer from a ContextLoaderListener

Returns:
the ContextServer