org.codehaus.groovy.grails.web.sitemesh
Class GrailsPageFilter

java.lang.Object
  extended by com.opensymphony.sitemesh.webapp.SiteMeshFilter
      extended by org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter
All Implemented Interfaces:
javax.servlet.Filter

public class GrailsPageFilter
extends com.opensymphony.sitemesh.webapp.SiteMeshFilter

Extends the default page filter to overide the apply decorator behaviour if the page is a GSP


Field Summary
static java.lang.String ALREADY_APPLIED_KEY
           
static java.lang.String FACTORY_SERVLET_CONTEXT_ATTRIBUTE
           
static java.lang.String GSP_SITEMESH_PAGE
           
protected  org.springframework.web.servlet.ViewResolver layoutViewResolver
           
 
Constructor Summary
GrailsPageFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest rq, javax.servlet.ServletResponse rs, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig fc)
           
 
Methods inherited from class com.opensymphony.sitemesh.webapp.SiteMeshFilter
initContentProcessor, initDecoratorSelector
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALREADY_APPLIED_KEY

public static final java.lang.String ALREADY_APPLIED_KEY
See Also:
Constant Field Values

FACTORY_SERVLET_CONTEXT_ATTRIBUTE

public static final java.lang.String FACTORY_SERVLET_CONTEXT_ATTRIBUTE
See Also:
Constant Field Values

GSP_SITEMESH_PAGE

public static final java.lang.String GSP_SITEMESH_PAGE

layoutViewResolver

protected org.springframework.web.servlet.ViewResolver layoutViewResolver
Constructor Detail

GrailsPageFilter

public GrailsPageFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig fc)
Specified by:
init in interface javax.servlet.Filter
Overrides:
init in class com.opensymphony.sitemesh.webapp.SiteMeshFilter

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter
Overrides:
destroy in class com.opensymphony.sitemesh.webapp.SiteMeshFilter

doFilter

public void doFilter(javax.servlet.ServletRequest rq,
                     javax.servlet.ServletResponse rs,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Overrides:
doFilter in class com.opensymphony.sitemesh.webapp.SiteMeshFilter
Throws:
java.io.IOException
javax.servlet.ServletException