|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IContext
Interface which all contexts must implement. Used when the JSR223 interface is not available.
Field Summary | |
---|---|
static int |
ENGINE_SCOPE
The engine scope |
static int |
GLOBAL_SCOPE
The global scope |
static java.lang.String |
JAVA_BRIDGE
This key can be used to get the current JavaBridge instance. |
static java.lang.String |
SERVLET
This key can be used to get the current Servlet instance. |
static java.lang.String |
SERVLET_CONFIG
This key can be used to get the current ServletConfig instance. |
static java.lang.String |
SERVLET_CONTEXT
This key can be used to get the current ServletContext instance. |
static java.lang.String |
SERVLET_REQUEST
This key can be used to get the current HttpServletRequest instance. |
static java.lang.String |
SERVLET_RESPONSE
This key can be used to get the current HttpServletResponse instance. |
Method Summary | |
---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Retrieves the value for getAttribute(String, int) for the lowest scope in which it returns a non-null value. |
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Retrieves the value associated with specified name in the specified level of scope. |
int |
getAttributesScope(java.lang.String name)
Retrieves the lowest value of scopes for which the attribute is defined. |
java.io.Writer |
getWriter()
Retrieves an instance of java.io.Writer which can be used by scripts to display their output. |
java.lang.Object |
removeAttribute(java.lang.String name,
int scope)
Removes the specified attribute form the specified level of scope. |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
Sets an attribute specified by the name in specified level of scope. |
Field Detail |
---|
static final int ENGINE_SCOPE
static final int GLOBAL_SCOPE
static final java.lang.String JAVA_BRIDGE
java_context->getAttribute("php.java.bridge.JavaBridge");
static final java.lang.String SERVLET_CONTEXT
java_context->getAttribute("php.java.servlet.ServletContext");
static final java.lang.String SERVLET_CONFIG
java_context->getAttribute("php.java.servlet.ServletConfig");
static final java.lang.String SERVLET
java_context->getAttribute("php.java.servlet.Servlet");
static final java.lang.String SERVLET_REQUEST
java_context->getAttribute("php.java.servlet.HttpServletRequest");
static final java.lang.String SERVLET_RESPONSE
java_context->getAttribute("php.java.servlet.HttpServletResponse");
Method Detail |
---|
java.lang.Object getAttribute(java.lang.String name) throws java.lang.IllegalArgumentException
name
- the name of the attribute
java.lang.IllegalArgumentException
java.lang.Object getAttribute(java.lang.String name, int scope) throws java.lang.IllegalArgumentException
name
- the name of the attributescope
- the level of scope
java.lang.IllegalArgumentException
int getAttributesScope(java.lang.String name)
name
- the name of attribute
java.io.Writer getWriter() throws java.io.IOException
java.io.IOException
java.lang.Object removeAttribute(java.lang.String name, int scope) throws java.lang.IllegalArgumentException
name
- the name of the attributescope
- the level of scope
java.lang.IllegalArgumentException
void setAttribute(java.lang.String name, java.lang.Object value, int scope) throws java.lang.IllegalArgumentException
name
- the name of the attributevalue
- the value of the attributescope
- the level of the scope
IllegalArguementException
- if the name is null scope is
invlaid
java.lang.IllegalArgumentException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |