Groovy Documentation

org.codehaus.groovy.grails.web.pages.ext.jsp
[Java] Class GroovyPagesPageContext

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.

Authors:
Graeme Rocher
Since:
1.1


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#getException(), 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#forward(java.lang.String), javax.servlet.jsp.PageContext#include(java.lang.String), javax.servlet.jsp.PageContext#include(java.lang.String, boolean), javax.servlet.jsp.PageContext#getSession(), javax.servlet.jsp.PageContext#getRequest(), javax.servlet.jsp.PageContext#getResponse(), javax.servlet.jsp.PageContext#getServletContext(), javax.servlet.jsp.PageContext#getPage(), javax.servlet.jsp.PageContext#getServletConfig(), javax.servlet.jsp.PageContext#handlePageException(java.lang.Exception), javax.servlet.jsp.PageContext#handlePageException(java.lang.Throwable), javax.servlet.jsp.PageContext#pushBody(), javax.servlet.jsp.PageContext#getErrorData(), javax.servlet.jsp.PageContext#getAttribute(java.lang.String), javax.servlet.jsp.PageContext#getAttribute(java.lang.String, int), javax.servlet.jsp.PageContext#findAttribute(java.lang.String), javax.servlet.jsp.PageContext#setAttribute(java.lang.String, java.lang.Object), javax.servlet.jsp.PageContext#setAttribute(java.lang.String, java.lang.Object, int), javax.servlet.jsp.PageContext#removeAttribute(java.lang.String, int), javax.servlet.jsp.PageContext#removeAttribute(java.lang.String), javax.servlet.jsp.PageContext#getOut(), javax.servlet.jsp.PageContext#pushBody(java.io.Writer), javax.servlet.jsp.PageContext#getAttributesScope(java.lang.String), javax.servlet.jsp.PageContext#getAttributeNamesInScope(int), 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), javax.servlet.jsp.PageContext#wait(long, int), 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#getAttribute(java.lang.String), javax.servlet.jsp.JspContext#getAttribute(java.lang.String, int), javax.servlet.jsp.JspContext#findAttribute(java.lang.String), javax.servlet.jsp.JspContext#setAttribute(java.lang.String, java.lang.Object), javax.servlet.jsp.JspContext#setAttribute(java.lang.String, java.lang.Object, int), javax.servlet.jsp.JspContext#removeAttribute(java.lang.String, int), javax.servlet.jsp.JspContext#removeAttribute(java.lang.String), javax.servlet.jsp.JspContext#getOut(), javax.servlet.jsp.JspContext#pushBody(java.io.Writer), javax.servlet.jsp.JspContext#getAttributesScope(java.lang.String), javax.servlet.jsp.JspContext#getAttributeNamesInScope(int), 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), javax.servlet.jsp.JspContext#wait(long, int), 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

GroovyPagesPageContext

public GroovyPagesPageContext(javax.servlet.Servlet pagesServlet, groovy.lang.Binding pageScope)


GroovyPagesPageContext

this(new GenericServlet() {
public GroovyPagesPageContext(groovy.lang.Binding pageScope)


GroovyPagesPageContext

public GroovyPagesPageContext()


 
Method Detail

findAttribute

if (scope > 0) {
public java.lang.Object findAttribute(java.lang.String name)


forward

@Override
public void forward(java.lang.String url)


getAttribute

return pageScope.getVariable(name);
public java.lang.Object getAttribute(java.lang.String name)


getAttribute

case PAGE_SCOPE:        return getAttribute(name);
public java.lang.Object getAttribute(java.lang.String name, int scope)


getAttributeNamesInScope

return new IteratorEnumeration(pageScope.getVariables().keySet().iterator());
case REQUEST_SCOPE:
public java.util.Enumeration getAttributeNamesInScope(int scope)


getAttributesScope

return PAGE_SCOPE;
public int getAttributesScope(java.lang.String name)


getException

@Override
public java.lang.Exception getException()


getExpressionEvaluator

return Thread.currentThread().getContextClassLoader();
public javax.servlet.jsp.el.ExpressionEvaluator getExpressionEvaluator()


getOut

}
public javax.servlet.jsp.JspWriter getOut()


getPage

@Override
public java.lang.Object getPage()


getRequest

@Override
public javax.servlet.ServletRequest getRequest()


getResponse

@Override
public javax.servlet.ServletResponse getResponse()


getServletConfig

@Override
public javax.servlet.ServletConfig getServletConfig()


getServletContext

@Override
public javax.servlet.ServletContext getServletContext()


getSession

@Override
public javax.servlet.http.HttpSession getSession()


getVariableResolver

return ctx.findAttribute(name);
public javax.servlet.jsp.el.VariableResolver getVariableResolver()


handlePageException

@Override
public void handlePageException(java.lang.Exception e)


handlePageException

@Override
public void handlePageException(java.lang.Throwable throwable)


include

@Override
public void include(java.lang.String url)


include

@Override
public void include(java.lang.String url, boolean flush)


initialize

// 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)


popBody

popWriter();
public javax.servlet.jsp.JspWriter popBody()


pushBody

BodyContent bc = new BodyContentImpl(getOut(), true);
public javax.servlet.jsp.tagext.BodyContent pushBody()


release

public void release()


removeAttribute

public void removeAttribute(java.lang.String name)


removeAttribute

case PAGE_SCOPE:
public void removeAttribute(java.lang.String name, int scope)


setAttribute

public void setAttribute(java.lang.String name, java.lang.Object value)


setAttribute

case PAGE_SCOPE:
public void setAttribute(java.lang.String name, java.lang.Object value, int scope)


 

Groovy Documentation