|
||||||||||
| 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 ScriptContextgetWriter in interface IContextgetWriter in interface IPhpScriptContextgetWriter in class SimpleScriptContextpublic void setContinuation(HttpProxy kont)
setContinuation in interface IPhpScriptContextkont - - The continuation.
public boolean call(PhpProcedureProxy kont)
throws java.lang.InterruptedException
Invocablekont as its argument.
call in interface Invocablekont - The continuation.
java.lang.InterruptedExceptionpublic void setWriter(java.io.Writer writer)
IPhpScriptContext
setWriter in interface IPhpScriptContextwriter - 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 | |||||||||