|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.JspContext javax.servlet.jsp.PageContext org.codehaus.groovy.grails.web.pages.ext.jsp.GroovyPagesPageContext
public class GroovyPagesPageContext extends javax.servlet.jsp.PageContext
A JSP PageContext implementation for use with GSP.
Field Summary |
---|
Fields inherited from class javax.servlet.jsp.PageContext | |
---|---|
PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, APPLICATION_SCOPE, PAGE, PAGECONTEXT, REQUEST, RESPONSE, CONFIG, SESSION, OUT, APPLICATION, EXCEPTION |
Constructor Summary | |
GroovyPagesPageContext(javax.servlet.Servlet pagesServlet, groovy.lang.Binding pageScope)
|
|
GroovyPagesPageContext(groovy.lang.Binding pageScope)
|
|
GroovyPagesPageContext()
|
Method Summary | |
---|---|
java.lang.Object
|
findAttribute(java.lang.String name)
|
void
|
forward(java.lang.String url)
|
java.lang.Object
|
getAttribute(java.lang.String name)
|
java.lang.Object
|
getAttribute(java.lang.String name, int scope)
|
java.util.Enumeration
|
getAttributeNamesInScope(int scope)
|
int
|
getAttributesScope(java.lang.String name)
|
java.lang.Exception
|
getException()
|
javax.servlet.jsp.el.ExpressionEvaluator
|
getExpressionEvaluator()
|
javax.servlet.jsp.JspWriter
|
getOut()
|
java.lang.Object
|
getPage()
|
javax.servlet.ServletRequest
|
getRequest()
|
javax.servlet.ServletResponse
|
getResponse()
|
javax.servlet.ServletConfig
|
getServletConfig()
|
javax.servlet.ServletContext
|
getServletContext()
|
javax.servlet.http.HttpSession
|
getSession()
|
javax.servlet.jsp.el.VariableResolver
|
getVariableResolver()
|
void
|
handlePageException(java.lang.Exception e)
|
void
|
handlePageException(java.lang.Throwable throwable)
|
void
|
include(java.lang.String url)
|
void
|
include(java.lang.String url, boolean flush)
|
void
|
initialize(javax.servlet.Servlet s, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, java.lang.String errorPageURL, boolean needSession, int bufferSize, boolean autoFlush)
|
javax.servlet.jsp.JspWriter
|
popBody()
|
javax.servlet.jsp.tagext.BodyContent
|
pushBody()
|
void
|
release()
|
void
|
removeAttribute(java.lang.String name)
|
void
|
removeAttribute(java.lang.String name, int scope)
|
void
|
setAttribute(java.lang.String name, java.lang.Object value)
|
void
|
setAttribute(java.lang.String name, java.lang.Object value, int scope)
|
Methods inherited from class javax.servlet.jsp.PageContext | |
---|---|
javax.servlet.jsp.PageContext#forward(java.lang.String), javax.servlet.jsp.PageContext#initialize(javax.servlet.Servlet, javax.servlet.ServletRequest, javax.servlet.ServletResponse, java.lang.String, boolean, int, boolean), javax.servlet.jsp.PageContext#release(), javax.servlet.jsp.PageContext#include(java.lang.String), javax.servlet.jsp.PageContext#include(java.lang.String, boolean), javax.servlet.jsp.PageContext#getException(), javax.servlet.jsp.PageContext#getRequest(), javax.servlet.jsp.PageContext#getSession(), javax.servlet.jsp.PageContext#pushBody(), javax.servlet.jsp.PageContext#getServletConfig(), javax.servlet.jsp.PageContext#handlePageException(java.lang.Throwable), javax.servlet.jsp.PageContext#handlePageException(java.lang.Exception), javax.servlet.jsp.PageContext#getPage(), javax.servlet.jsp.PageContext#getErrorData(), javax.servlet.jsp.PageContext#getServletContext(), javax.servlet.jsp.PageContext#getResponse(), javax.servlet.jsp.PageContext#setAttribute(java.lang.String, java.lang.Object, int), javax.servlet.jsp.PageContext#setAttribute(java.lang.String, java.lang.Object), javax.servlet.jsp.PageContext#getAttribute(java.lang.String, int), javax.servlet.jsp.PageContext#getAttribute(java.lang.String), javax.servlet.jsp.PageContext#removeAttribute(java.lang.String, int), javax.servlet.jsp.PageContext#removeAttribute(java.lang.String), javax.servlet.jsp.PageContext#findAttribute(java.lang.String), javax.servlet.jsp.PageContext#getOut(), javax.servlet.jsp.PageContext#getAttributesScope(java.lang.String), javax.servlet.jsp.PageContext#getAttributeNamesInScope(int), javax.servlet.jsp.PageContext#pushBody(java.io.Writer), javax.servlet.jsp.PageContext#getExpressionEvaluator(), javax.servlet.jsp.PageContext#getVariableResolver(), javax.servlet.jsp.PageContext#popBody(), javax.servlet.jsp.PageContext#wait(), javax.servlet.jsp.PageContext#wait(long, int), javax.servlet.jsp.PageContext#wait(long), javax.servlet.jsp.PageContext#equals(java.lang.Object), javax.servlet.jsp.PageContext#toString(), javax.servlet.jsp.PageContext#hashCode(), javax.servlet.jsp.PageContext#getClass(), javax.servlet.jsp.PageContext#notify(), javax.servlet.jsp.PageContext#notifyAll() |
Methods inherited from class javax.servlet.jsp.JspContext | |
---|---|
javax.servlet.jsp.JspContext#setAttribute(java.lang.String, java.lang.Object, int), javax.servlet.jsp.JspContext#setAttribute(java.lang.String, java.lang.Object), javax.servlet.jsp.JspContext#getAttribute(java.lang.String, int), javax.servlet.jsp.JspContext#getAttribute(java.lang.String), javax.servlet.jsp.JspContext#removeAttribute(java.lang.String, int), javax.servlet.jsp.JspContext#removeAttribute(java.lang.String), javax.servlet.jsp.JspContext#findAttribute(java.lang.String), javax.servlet.jsp.JspContext#getOut(), javax.servlet.jsp.JspContext#getAttributesScope(java.lang.String), javax.servlet.jsp.JspContext#getAttributeNamesInScope(int), javax.servlet.jsp.JspContext#pushBody(java.io.Writer), javax.servlet.jsp.JspContext#getExpressionEvaluator(), javax.servlet.jsp.JspContext#getVariableResolver(), javax.servlet.jsp.JspContext#popBody(), javax.servlet.jsp.JspContext#wait(), javax.servlet.jsp.JspContext#wait(long, int), javax.servlet.jsp.JspContext#wait(long), javax.servlet.jsp.JspContext#equals(java.lang.Object), javax.servlet.jsp.JspContext#toString(), javax.servlet.jsp.JspContext#hashCode(), javax.servlet.jsp.JspContext#getClass(), javax.servlet.jsp.JspContext#notify(), javax.servlet.jsp.JspContext#notifyAll() |
Constructor Detail |
---|
public GroovyPagesPageContext(javax.servlet.Servlet pagesServlet, groovy.lang.Binding pageScope)
this(new GenericServlet() { public GroovyPagesPageContext(groovy.lang.Binding pageScope)
public GroovyPagesPageContext()
Method Detail |
---|
if (scope > 0) { public java.lang.Object findAttribute(java.lang.String name)
@Override public void forward(java.lang.String url)
return pageScope.getVariable(name); public java.lang.Object getAttribute(java.lang.String name)
case PAGE_SCOPE: return getAttribute(name); public java.lang.Object getAttribute(java.lang.String name, int scope)
return new IteratorEnumeration(pageScope.getVariables().keySet().iterator()); case REQUEST_SCOPE: public java.util.Enumeration getAttributeNamesInScope(int scope)
return PAGE_SCOPE; public int getAttributesScope(java.lang.String name)
@Override public java.lang.Exception getException()
return Thread.currentThread().getContextClassLoader(); public javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()
} public javax.servlet.jsp.JspWriter getOut()
@Override public java.lang.Object getPage()
@Override public javax.servlet.ServletRequest getRequest()
@Override public javax.servlet.ServletResponse getResponse()
@Override public javax.servlet.ServletConfig getServletConfig()
@Override public javax.servlet.ServletContext getServletContext()
@Override public javax.servlet.http.HttpSession getSession()
return ctx.findAttribute(name); public javax.servlet.jsp.el.VariableResolver getVariableResolver()
@Override public void handlePageException(java.lang.Exception e)
@Override public void handlePageException(java.lang.Throwable throwable)
@Override public void include(java.lang.String url)
@Override public void include(java.lang.String url, boolean flush)
// do nothing, not constructed for container public void initialize(javax.servlet.Servlet s, javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, java.lang.String errorPageURL, boolean needSession, int bufferSize, boolean autoFlush)
popWriter(); public javax.servlet.jsp.JspWriter popBody()
BodyContent bc = new BodyContentImpl(getOut(), true); public javax.servlet.jsp.tagext.BodyContent pushBody()
public void release()
public void removeAttribute(java.lang.String name)
case PAGE_SCOPE: public void removeAttribute(java.lang.String name, int scope)
public void setAttribute(java.lang.String name, java.lang.Object value)
case PAGE_SCOPE: public void setAttribute(java.lang.String name, java.lang.Object value, int scope)
Groovy Documentation