|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.script.SimpleScriptContext
php.java.script.PhpScriptContext
public class PhpScriptContext
This class implements a simple script context for PHP. It starts a standalone
JavaBridgeRunner
which listens for requests from php instances.
In a servlet environment please use a php.java.script.PhpSimpleHttpScriptContext
instead.
PhpSimpleHttpScriptContext
,
JavaBridgeRunner
Field Summary |
---|
Fields inherited from interface javax.script.ScriptContext |
---|
ENGINE_SCOPE, GLOBAL_SCOPE |
Constructor Summary | |
---|---|
PhpScriptContext()
Create a standalone PHP script context. |
Method Summary | |
---|---|
boolean |
call(PhpProcedureProxy kont)
Call the java continuation with the current continuation kont as its argument. |
HttpProxy |
getContinuation()
Get the php continuation |
static HttpServer |
getHttpServer()
Return the http server associated with this VM. |
java.io.Writer |
getWriter()
Retrieves an instance of java.io.Writer which can be used by scripts to display their output. |
void |
setContinuation(HttpProxy kont)
Set the php continuation |
void |
setWriter(java.io.Writer writer)
Set the Writer |
Methods inherited from class javax.script.SimpleScriptContext |
---|
getAttribute, getAttribute, getAttributesScope, getBindings, removeAttribute, setAttribute, setBindings |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PhpScriptContext()
Method Detail |
---|
public static HttpServer getHttpServer()
public java.io.Writer getWriter()
SimpleScriptContext
getWriter
in interface ScriptContext
getWriter
in interface IContext
getWriter
in interface IPhpScriptContext
getWriter
in class SimpleScriptContext
public void setContinuation(HttpProxy kont)
setContinuation
in interface IPhpScriptContext
kont
- - The continuation.public boolean call(PhpProcedureProxy kont) throws java.lang.InterruptedException
Invocable
kont
as its argument.
call
in interface Invocable
kont
- The continuation.
java.lang.InterruptedException
public void setWriter(java.io.Writer writer)
IPhpScriptContext
setWriter
in interface IPhpScriptContext
writer
- The writerpublic HttpProxy getContinuation()
IPhpScriptContext
getContinuation
in interface IPhpScriptContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |