|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HttpScriptContext
Context information from an engine to the namespace.
| Field Summary | |
|---|---|
static int |
APPLICATION_SCOPE
|
static int |
REQUEST_SCOPE
|
static int |
SESSION_SCOPE
|
| Fields inherited from interface javax.script.ScriptContext |
|---|
ENGINE_SCOPE, GLOBAL_SCOPE |
| Method Summary | |
|---|---|
boolean |
disableScript()
Returns the script enable/disable state. |
boolean |
displayResults()
True if the servlet should display the results. |
void |
forward(java.lang.String path)
Forwards to the relative path. |
java.lang.String[] |
getAllowedLanguages()
Returns the allowed script languages. |
java.lang.Object |
getAttribute(java.lang.String name)
Returns an attribute with the lowest score. |
java.lang.Object |
getAttribute(java.lang.String name,
int scope)
Returns an attribute from the given scope. |
java.lang.String[] |
getMethods()
Returns the HTTP request methods allowed. |
HttpServletRequest |
getRequest()
Returns the http request. |
HttpServletResponse |
getResponse()
Returns the http response |
java.io.Reader |
getScriptSource()
Returns a reader from the source. |
Servlet |
getServlet()
Returns the servlet |
void |
include(java.lang.String path)
Includes the relative path. |
void |
initialize(Servlet servlet,
HttpServletRequest request,
HttpServletResponse response)
Initialize the context with the current servlet. |
void |
release()
Clears the state of the context. |
void |
setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
Sets an attribute from the given scope. |
boolean |
useSession()
Returns the script session state. |
| Methods inherited from interface javax.script.ScriptContext |
|---|
getAttributesScope, getBindings, getErrorWriter, getReader, getScopes, getWriter, removeAttribute, setBindings, setErrorWriter, setReader, setWriter |
| Field Detail |
|---|
static final int REQUEST_SCOPE
static final int APPLICATION_SCOPE
static final int SESSION_SCOPE
| Method Detail |
|---|
void initialize(Servlet servlet,
HttpServletRequest request,
HttpServletResponse response)
throws ServletException
ServletExceptionvoid release()
java.lang.Object getAttribute(java.lang.String name,
int scope)
getAttribute in interface ScriptContextjava.lang.Object getAttribute(java.lang.String name)
getAttribute in interface ScriptContext
void setAttribute(java.lang.String name,
java.lang.Object value,
int scope)
setAttribute in interface ScriptContextjava.io.Reader getScriptSource()
HttpServletRequest getRequest()
HttpServletResponse getResponse()
Servlet getServlet()
void forward(java.lang.String path)
throws ServletException,
java.io.IOException
ServletException
java.io.IOException
void include(java.lang.String path)
throws ServletException,
java.io.IOException
ServletException
java.io.IOExceptionboolean disableScript()
boolean useSession()
boolean displayResults()
java.lang.String[] getMethods()
java.lang.String[] getAllowedLanguages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||