|
||||||||||
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 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 ScriptContext
getWriter
in interface IContext
getWriter
in interface IPhpScriptContext
getWriter
in class SimpleScriptContext
Writer
.public java.io.Writer getErrorWriter()
Writer
used to display error output.
getErrorWriter
in interface ScriptContext
getErrorWriter
in class SimpleScriptContext
Writer
public void setContinuation(HttpProxy kont)
IPhpScriptContext
setContinuation
in interface IPhpScriptContext
kont
- The continuation.public HttpProxy getContinuation()
IPhpScriptContext
getContinuation
in interface IPhpScriptContext
public boolean call(PhpProcedureProxy kont) throws java.lang.Exception
Invocable
kont
as its argument.
call
in interface Invocable
kont
- The continuation.
java.lang.Exception
public void setWriter(java.io.Writer writer)
Writer
for scripts to use when displaying output.
TODO: test
setWriter
in interface ScriptContext
setWriter
in interface IPhpScriptContext
setWriter
in class SimpleScriptContext
writer
- The new Writer
.public void setErrorWriter(java.io.Writer writer)
Writer
used to display error output.
setErrorWriter
in interface ScriptContext
setErrorWriter
in class SimpleScriptContext
writer
- The Writer
.public abstract java.lang.String getSocketName()
getSocketName
in interface IPhpScriptContext
public 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 |