|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.script.SimpleScriptContext
php.java.script.AbstractPhpScriptContext
public abstract class AbstractPhpScriptContext
A simple ScriptContext which can be used in servlet- or standalone environments.
| Field Summary | |
|---|---|
static int |
APPLICATION_SCOPE
Integer value for the level of APPLICATION_SCOPE |
static int |
REQUEST_SCOPE
Integer value for the level of SCRIPT_SCOPE |
static int |
SESSION_SCOPE
Integer value for the level of SESSION_SCOPE |
| Fields inherited from interface php.java.bridge.http.IContext |
|---|
ENGINE_SCOPE, GLOBAL_SCOPE, JAVA_BRIDGE, SERVLET, SERVLET_CONFIG, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE |
| Fields inherited from interface javax.script.ScriptContext |
|---|
ENGINE_SCOPE, GLOBAL_SCOPE |
| Constructor Summary | |
|---|---|
AbstractPhpScriptContext()
|
|
| Method Summary | |
|---|---|
boolean |
call(PhpProcedureProxy kont)
Call the java continuation with the current continuation kont as its argument. |
abstract java.lang.String |
getContextString()
Return the context string, for example http://localhost:8080/JavaBridge |
HttpProxy |
getContinuation()
Get the php continuation |
java.io.Writer |
getErrorWriter()
Returns the Writer used to display error output. |
abstract java.lang.String |
getSocketName()
Return the socket name, for example 8080 |
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 |
| Methods inherited from interface php.java.bridge.http.IContext |
|---|
getAttribute, getAttribute, getAttributesScope, removeAttribute, setAttribute |
| Field Detail |
|---|
public static final int REQUEST_SCOPE
public static final int SESSION_SCOPE
public static final int APPLICATION_SCOPE
| Constructor Detail |
|---|
public AbstractPhpScriptContext()
| Method Detail |
|---|
public java.io.Writer getWriter()
Writer 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()
Writer used to display error output.
getErrorWriter in interface ScriptContextgetErrorWriter in class SimpleScriptContextWriterpublic void setContinuation(HttpProxy kont)
IPhpScriptContext
setContinuation in interface IPhpScriptContextkont - The continuation.public HttpProxy getContinuation()
IPhpScriptContext
getContinuation in interface IPhpScriptContext
public boolean call(PhpProcedureProxy kont)
throws java.lang.Exception
Invocablekont as its argument.
call in interface Invocablekont - The continuation.
java.lang.Exceptionpublic void setWriter(java.io.Writer writer)
Writer for scripts to use when displaying output.
TODO: test
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 abstract java.lang.String getSocketName()
getSocketName in interface IPhpScriptContextpublic abstract java.lang.String getContextString()
getContextString in interface IPhpScriptContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||