|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object php.java.script.ScriptContextDecorator php.java.script.AbstractPhpScriptContext
public abstract class AbstractPhpScriptContext
A simple ScriptContext which can be used in servlet- or standalone environments.
Field Summary |
---|
Fields inherited from interface php.java.bridge.http.IContext |
---|
ENGINE_SCOPE, GLOBAL_SCOPE, JAVA_BRIDGE, PHP_PROCEDURE, SERVLET, SERVLET_CONFIG, SERVLET_CONTEXT, SERVLET_REQUEST, SERVLET_RESPONSE |
Fields inherited from interface javax.script.ScriptContext |
---|
ENGINE_SCOPE, GLOBAL_SCOPE |
Constructor Summary | |
---|---|
AbstractPhpScriptContext(ScriptContext ctx)
|
Method Summary | |
---|---|
boolean |
call(java.lang.Object kont)
Call the java continuation with the current continuation kont as its argument. |
Continuation |
getContinuation()
Get the php continuation |
java.io.Writer |
getErrorWriter()
Returns the Writer used to display error output. |
java.io.Writer |
getWriter()
Returns the Writer for scripts to use when displaying output. |
void |
setContinuation(Continuation 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. |
void |
startContinuation()
Start the current continuation using a context-specific thread pool |
Methods inherited from class php.java.script.ScriptContextDecorator |
---|
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.script.IPhpScriptContext |
---|
createContinuation, getContextServer |
Methods inherited from interface php.java.bridge.IManaged |
---|
init, onShutdown |
Methods inherited from interface php.java.bridge.http.IContext |
---|
get, getAll, getAttribute, getAttribute, getAttributesScope, getHttpServletRequest, getHttpServletResponse, getRealPath, getRedirectString, getRedirectString, getRedirectURL, getServlet, getServletConfig, getServletContext, getSocketName, put, putAll, remove, removeAttribute, setAttribute |
Methods inherited from interface javax.script.ScriptContext |
---|
getAttribute, getAttribute, getAttributesScope, getBindings, getReader, getScopes, removeAttribute, setAttribute, setBindings, setReader |
Constructor Detail |
---|
public AbstractPhpScriptContext(ScriptContext ctx)
Method Detail |
---|
public java.io.Writer getWriter()
ScriptContextDecorator
Writer
for scripts to use when displaying output.
getWriter
in interface ScriptContext
getWriter
in interface IContext
getWriter
in class ScriptContextDecorator
Writer
.public java.io.Writer getErrorWriter()
ScriptContextDecorator
Writer
used to display error output.
getErrorWriter
in interface ScriptContext
getErrorWriter
in class ScriptContextDecorator
Writer
public void startContinuation()
startContinuation
in interface IPhpScriptContext
public void setContinuation(Continuation kont)
IPhpScriptContext
setContinuation
in interface IPhpScriptContext
kont
- The continuation.public Continuation getContinuation()
IPhpScriptContext
getContinuation
in interface IPhpScriptContext
public boolean call(java.lang.Object 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 class ScriptContextDecorator
writer
- The new Writer
.public void setErrorWriter(java.io.Writer writer)
Writer
used to display error output.
setErrorWriter
in interface ScriptContext
setErrorWriter
in class ScriptContextDecorator
writer
- The Writer
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |