|
|||||||||
| Home >> All >> org >> milligan >> eccles >> [ evaluator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.milligan.eccles.evaluator
Class PageContextFacade

java.lang.Objectjavax.servlet.jsp.JspContext
javax.servlet.jsp.PageContext
org.milligan.eccles.evaluator.PageContextFacade
- public class PageContextFacade
- extends javax.servlet.jsp.PageContext
A helper class to interface with the JSTL SPEL. Make property functions appear as a PageContext
| Field Summary | |
protected static org.apache.log4j.Category |
log
|
protected org.milligan.eccles.RunStateEx |
state
The run state |
| Fields inherited from class javax.servlet.jsp.PageContext |
APPLICATION, APPLICATION_SCOPE, CONFIG, EXCEPTION, OUT, PAGE, PAGE_SCOPE, PAGECONTEXT, REQUEST, REQUEST_SCOPE, RESPONSE, SESSION, SESSION_SCOPE |
| Constructor Summary | |
PageContextFacade(org.milligan.eccles.RunStateEx state)
|
|
| Method Summary | |
java.lang.Object |
findAttribute(java.lang.String parm1)
Implementation of find attribute. |
void |
forward(java.lang.String parm1)
This method is used to re-direct, or "forward" the current ServletRequest and ServletResponse to another active component in the application. |
java.lang.Object |
getAttribute(java.lang.String parm1)
Returns the object associated with the name in the page scope or null if not found. |
java.lang.Object |
getAttribute(java.lang.String parm1,
int parm2)
Return the object associated with the name in the specified scope or null if not found. |
java.util.Enumeration |
getAttributeNamesInScope(int parm1)
Enumerate all the attributes in a given scope. |
int |
getAttributesScope(java.lang.String parm1)
Get the scope where a given attribute is defined. |
java.lang.Exception |
getException()
The current value of the exception object (an Exception). |
javax.servlet.jsp.JspWriter |
getOut()
The current value of the out object (a JspWriter). |
java.lang.Object |
getPage()
The current value of the page object (In a Servlet environment, this is an instance of javax.servlet.Servlet). |
javax.servlet.ServletRequest |
getRequest()
The current value of the request object (a ServletRequest). |
javax.servlet.ServletResponse |
getResponse()
The current value of the response object (a ServletResponse). |
javax.servlet.ServletConfig |
getServletConfig()
The ServletConfig instance. |
javax.servlet.ServletContext |
getServletContext()
The ServletContext instance. |
javax.servlet.http.HttpSession |
getSession()
The current value of the session object (an HttpSession). |
void |
handlePageException(java.lang.Exception parm1)
This method is intended to process an unhandled 'page' level exception by forwarding the exception to the specified error page for this JSP. |
void |
handlePageException(java.lang.Throwable parm1)
This method is intended to process an unhandled 'page' level exception by forwarding the exception to the specified error page for this JSP. |
void |
include(java.lang.String parm1)
Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread. |
void |
initialize(javax.servlet.Servlet parm1,
javax.servlet.ServletRequest parm2,
javax.servlet.ServletResponse parm3,
java.lang.String parm4,
boolean parm5,
int parm6,
boolean parm7)
The initialize method is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response within it's _jspService() method. |
void |
release()
This method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize(). |
void |
removeAttribute(java.lang.String parm1)
Remove the object reference associated with the given name from all scopes. |
void |
removeAttribute(java.lang.String parm1,
int parm2)
Remove the object reference associated with the specified name in the given scope. |
void |
setAttribute(java.lang.String parm1,
java.lang.Object parm2)
Register the name and value specified with page scope semantics. |
void |
setAttribute(java.lang.String parm1,
java.lang.Object parm2,
int parm3)
Register the name and value specified with appropriate scope semantics. |
| Methods inherited from class javax.servlet.jsp.PageContext |
getErrorData, include, pushBody |
| Methods inherited from class javax.servlet.jsp.JspContext |
getExpressionEvaluator, getVariableResolver, popBody, pushBody |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
log
protected static final org.apache.log4j.Category log
state
protected org.milligan.eccles.RunStateEx state
- The run state
| Constructor Detail |
PageContextFacade
public PageContextFacade(org.milligan.eccles.RunStateEx state)
| Method Detail |
getSession
public javax.servlet.http.HttpSession getSession()
- Description copied from class:
javax.servlet.jsp.PageContext - The current value of the session object (an HttpSession).
handlePageException
public void handlePageException(java.lang.Exception parm1) throws javax.servlet.ServletException, java.io.IOException
- Description copied from class:
javax.servlet.jsp.PageContext This method is intended to process an unhandled 'page' level exception by forwarding the exception to the specified error page for this JSP. If forwarding is not possible (for example because the response has already been committed), an implementation dependent mechanism should be used to invoke the error page (e.g. "including" the error page instead).
If no error page is defined in the page, the exception should be rethrown so that the standard servlet error handling takes over.
A JSP implementation class shall typically clean up any local state prior to invoking this and will return immediately thereafter. It is illegal to generate any output to the client, or to modify any ServletResponse state after invoking this call.
This method is kept for backwards compatiblity reasons. Newly generated code should use PageContext.handlePageException(Throwable).
getServletConfig
public javax.servlet.ServletConfig getServletConfig()
- Description copied from class:
javax.servlet.jsp.PageContext - The ServletConfig instance.
include
public void include(java.lang.String parm1) throws javax.servlet.ServletException, java.io.IOException
- Description copied from class:
javax.servlet.jsp.PageContext Causes the resource specified to be processed as part of the current ServletRequest and ServletResponse being processed by the calling Thread. The output of the target resources processing of the request is written directly to the ServletResponse output stream.
The current JspWriter "out" for this JSP is flushed as a side-effect of this call, prior to processing the include.
If the relativeUrlPath begins with a "/" then the URL specified is calculated relative to the DOCROOT of the
ServletContextfor this JSP. If the path does not begin with a "/" then the URL specified is calculated relative to the URL of the request that was mapped to the calling JSP.It is only valid to call this method from a
Threadexecuting within a_jspService(...)method of a JSP.
release
public void release()
- Description copied from class:
javax.servlet.jsp.PageContext This method shall "reset" the internal state of a PageContext, releasing all internal references, and preparing the PageContext for potential reuse by a later invocation of initialize(). This method is typically called from JspFactory.releasePageContext().
Subclasses shall envelope this method.
This method should not be used by page or tag library authors.
removeAttribute
public void removeAttribute(java.lang.String parm1, int parm2)
- Description copied from class:
javax.servlet.jsp.JspContext - Remove the object reference associated with the specified name
in the given scope. Does nothing if there is no such object.
removeAttribute
public void removeAttribute(java.lang.String parm1)
- Description copied from class:
javax.servlet.jsp.JspContext - Remove the object reference associated with the given name
from all scopes. Does nothing if there is no such object.
getOut
public javax.servlet.jsp.JspWriter getOut()
- Description copied from class:
javax.servlet.jsp.JspContext - The current value of the out object (a JspWriter).
handlePageException
public void handlePageException(java.lang.Throwable parm1) throws javax.servlet.ServletException, java.io.IOException
- Description copied from class:
javax.servlet.jsp.PageContext This method is intended to process an unhandled 'page' level exception by forwarding the exception to the specified error page for this JSP. If forwarding is not possible (for example because the response has already been committed), an implementation dependent mechanism should be used to invoke the error page (e.g. "including" the error page instead).
If no error page is defined in the page, the exception should be rethrown so that the standard servlet error handling takes over.
This method is intended to process an unhandled "page" level exception by redirecting the exception to either the specified error page for this JSP, or if none was specified, to perform some implementation dependent action.
A JSP implementation class shall typically clean up any local state prior to invoking this and will return immediately thereafter. It is illegal to generate any output to the client, or to modify any ServletResponse state after invoking this call.
getPage
public java.lang.Object getPage()
- Description copied from class:
javax.servlet.jsp.PageContext - The current value of the page object (In a Servlet environment,
this is an instance of javax.servlet.Servlet).
setAttribute
public void setAttribute(java.lang.String parm1, java.lang.Object parm2, int parm3)
- Description copied from class:
javax.servlet.jsp.JspContext - Register the name and value specified with appropriate
scope semantics. If the value passed in is
null, this has the same effect as callingremoveAttribute( name, scope ).
forward
public void forward(java.lang.String parm1) throws javax.servlet.ServletException, java.io.IOException
- Description copied from class:
javax.servlet.jsp.PageContext This method is used to re-direct, or "forward" the current ServletRequest and ServletResponse to another active component in the application.
If the relativeUrlPath begins with a "/" then the URL specified is calculated relative to the DOCROOT of the
ServletContextfor this JSP. If the path does not begin with a "/" then the URL specified is calculated relative to the URL of the request that was mapped to the calling JSP.It is only valid to call this method from a
Threadexecuting within a_jspService(...)method of a JSP.Once this method has been called successfully, it is illegal for the calling
Threadto attempt to modify theServletResponseobject. Any such attempt to do so, shall result in undefined behavior. Typically, callers immediately return from_jspService(...)after calling this method.
getServletContext
public javax.servlet.ServletContext getServletContext()
- Description copied from class:
javax.servlet.jsp.PageContext - The ServletContext instance.
getException
public java.lang.Exception getException()
- Description copied from class:
javax.servlet.jsp.PageContext - The current value of the exception object (an Exception).
initialize
public void initialize(javax.servlet.Servlet parm1, javax.servlet.ServletRequest parm2, javax.servlet.ServletResponse parm3, java.lang.String parm4, boolean parm5, int parm6, boolean parm7) throws java.io.IOException, java.lang.IllegalStateException, java.lang.IllegalArgumentException
- Description copied from class:
javax.servlet.jsp.PageContext The initialize method is called to initialize an uninitialized PageContext so that it may be used by a JSP Implementation class to service an incoming request and response within it's _jspService() method.
This method is typically called from JspFactory.getPageContext() in order to initialize state.
This method is required to create an initial JspWriter, and associate the "out" name in page scope with this newly created object.
This method should not be used by page or tag library authors.
getAttributeNamesInScope
public java.util.Enumeration getAttributeNamesInScope(int parm1)
- Description copied from class:
javax.servlet.jsp.JspContext - Enumerate all the attributes in a given scope.
getResponse
public javax.servlet.ServletResponse getResponse()
- Description copied from class:
javax.servlet.jsp.PageContext - The current value of the response object (a ServletResponse).
getAttributesScope
public int getAttributesScope(java.lang.String parm1)
- Description copied from class:
javax.servlet.jsp.JspContext - Get the scope where a given attribute is defined.
getRequest
public javax.servlet.ServletRequest getRequest()
- Description copied from class:
javax.servlet.jsp.PageContext - The current value of the request object (a ServletRequest).
getAttribute
public java.lang.Object getAttribute(java.lang.String parm1)
- Description copied from class:
javax.servlet.jsp.JspContext - Returns the object associated with the name in the page scope or null
if not found.
setAttribute
public void setAttribute(java.lang.String parm1, java.lang.Object parm2)
- Description copied from class:
javax.servlet.jsp.JspContext - Register the name and value specified with page scope semantics.
If the value passed in is
null, this has the same effect as callingremoveAttribute( name, PageContext.PAGE_SCOPE ).
findAttribute
public java.lang.Object findAttribute(java.lang.String parm1)
- Implementation of find attribute. just do a lookup on the state
getAttribute
public java.lang.Object getAttribute(java.lang.String parm1, int parm2)
- Description copied from class:
javax.servlet.jsp.JspContext - Return the object associated with the name in the specified
scope or null if not found.
|
|||||||||
| Home >> All >> org >> milligan >> eccles >> [ evaluator overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC