|
||||||||||
| 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
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.
PhpScriptContext,
JavaBridgeRunner| Field Summary |
|---|
| Fields inherited from class php.java.script.AbstractPhpScriptContext |
|---|
APPLICATION_SCOPE, REQUEST_SCOPE, 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 | |
|---|---|
PhpScriptContext()
Create a standalone PHP script context. |
|
| Method Summary | |
|---|---|
java.io.Writer |
getErrorWriter()
Returns the Writer used to display error output. |
java.lang.Object |
getHttpServletRequest()
Throws IllegalStateException |
java.lang.Object |
getHttpServletResponse()
Throws IllegalStateException |
java.lang.String |
getRealPath(java.lang.String path)
Get the full file system path for the given resource. |
java.lang.Object |
getServlet()
Throws IllegalStateException |
java.lang.Object |
getServletConfig()
Throws IllegalStateException |
java.lang.Object |
getServletContext()
Throws IllegalStateException |
java.io.Writer |
getWriter()
Returns the Writer for scripts to use when displaying output. |
java.lang.Object |
init(java.lang.Object callable)
Initialize a library. |
void |
onShutdown(java.lang.Object closeable)
Register a shutdown hook for the library. |
| Methods inherited from class php.java.script.AbstractPhpScriptContext |
|---|
call, getContinuation, setContinuation, setErrorWriter, setWriter |
| 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.script.IPhpScriptContext |
|---|
getContinuation, setContinuation, setWriter |
| Methods inherited from interface php.java.bridge.Invocable |
|---|
call |
| Methods inherited from interface php.java.bridge.http.IContext |
|---|
getAttribute, getAttribute, getAttributesScope, removeAttribute, setAttribute |
| Constructor Detail |
|---|
public PhpScriptContext()
| 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 AbstractPhpScriptContextWriter.public java.io.Writer getErrorWriter()
Writer used to display error output.
getErrorWriter in interface ScriptContextgetErrorWriter in class AbstractPhpScriptContextWriter
public java.lang.Object init(java.lang.Object callable)
throws java.lang.Exception
init in interface IManagedcallable - Its call() method will be called synchronized.
java.lang.Exception - The result of the call() invocation.public void onShutdown(java.lang.Object closeable)
onShutdown in interface IManagedcloseable - Its close() method will be called before the context or the VM terminates.public java.lang.Object getHttpServletRequest()
getHttpServletRequest in interface IContextpublic java.lang.Object getServletContext()
getServletContext in interface IContextpublic java.lang.Object getHttpServletResponse()
getHttpServletResponse in interface IContextpublic java.lang.Object getServlet()
getServlet in interface IContextpublic java.lang.Object getServletConfig()
getServletConfig in interface IContextpublic java.lang.String getRealPath(java.lang.String path)
getRealPath in interface IContextpath - the relative path to an existing resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||