|
||||||||||
| 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 |
java.io.Writer |
getErrorWriter()
Returns the Writer used to display error output. |
static HttpServer |
getHttpServer()
Return the http server associated with this VM. |
java.io.Writer |
getWriter()
Returns the Writer for scripts to use when displaying output. |
void |
setContinuation(HttpProxy kont)
Set the php continuation |
void |
setErrorWriter(java.io.Writer writer)
Sets the Writer used to display error output. |
void |
setWriter(java.io.Writer writer)
Sets the Writer for scripts to use when displaying output. |
| Methods inherited from class javax.script.SimpleScriptContext |
|---|
getAttribute, getAttribute, getAttributesScope, getBindings, getReader, getScopes, removeAttribute, setAttribute, setBindings, setReader |
| 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()
ScriptContextWriter for scripts to use when displaying output.
getWriter in interface ScriptContextgetWriter in interface IContextgetWriter in interface IPhpScriptContextgetWriter in class SimpleScriptContextWriter.public java.io.Writer getErrorWriter()
ScriptContextWriter used to display error output.
getErrorWriter in interface ScriptContextgetErrorWriter in class SimpleScriptContextWriterpublic 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)
Writer for scripts to use when displaying output.
setWriter in interface ScriptContextsetWriter in interface IPhpScriptContextsetWriter in class SimpleScriptContextwriter - The new Writer.public void setErrorWriter(java.io.Writer writer)
Writer used to display error output.
setErrorWriter in interface ScriptContextsetErrorWriter in class SimpleScriptContextwriter - The Writer.public HttpProxy getContinuation()
IPhpScriptContext
getContinuation in interface IPhpScriptContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||