|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphp.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()
ScriptContextDecoratorWriter for scripts to use when displaying output.
getWriter in interface ScriptContextgetWriter in interface IContextgetWriter in class ScriptContextDecoratorWriter.public java.io.Writer getErrorWriter()
ScriptContextDecoratorWriter used to display error output.
getErrorWriter in interface ScriptContextgetErrorWriter in class ScriptContextDecoratorWriterpublic void startContinuation()
startContinuation in interface IPhpScriptContextpublic void setContinuation(Continuation kont)
IPhpScriptContext
setContinuation in interface IPhpScriptContextkont - The continuation.public Continuation getContinuation()
IPhpScriptContext
getContinuation in interface IPhpScriptContext
public boolean call(java.lang.Object 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 class ScriptContextDecoratorwriter - The new Writer.public void setErrorWriter(java.io.Writer writer)
Writer used to display error output.
setErrorWriter in interface ScriptContextsetErrorWriter in class ScriptContextDecoratorwriter - The Writer.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||