org.blojsom.filter
Class PageFilter

java.lang.Object
  extended byorg.blojsom.filter.PageFilter
All Implemented Interfaces:
javax.servlet.Filter

public class PageFilter
extends java.lang.Object
implements javax.servlet.Filter

Page filter supports URLs of the form /[blojsom context]/[blojsom servlet mapping]/[blog ID]/[page name]/page/. For example, /blojsom/blog/default/about/page/ would try and pull the about.vm template from the default blog's templates directory.

Usage:
 
     PageFilter
     org.blojsom.filter.PageFilter
     
         use-root-blog-compatability
         false
     
 

 
     PageFilter
blojsom For the page filter to be used, it must be mapped before the permalink filter.

Since:
blojsom 2.29
Version:
PageFilter.java,v 1.1 2005/12/19 20:04:29 czarneckid Exp
Author:
David Czarnecki

Nested Class Summary
 class PageFilter.PagePermalinkRequst
          Page request
 
Constructor Summary
PageFilter()
          Construct a new instance of the Feed filter
 
Method Summary
 void destroy()
          Remove the filter from service
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
          Process the request.
 void init(javax.servlet.FilterConfig filterConfig)
          Initialize the filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageFilter

public PageFilter()
Construct a new instance of the Feed filter

Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Initialize the filter

Specified by:
init in interface javax.servlet.Filter
Parameters:
filterConfig - FilterConfig
Throws:
javax.servlet.ServletException - If there is an error initializing the filter

destroy

public void destroy()
Remove the filter from service

Specified by:
destroy in interface javax.servlet.Filter

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Process the request.

Processes requests of the form

Specified by:
doFilter in interface javax.servlet.Filter
Parameters:
request - ServletRequest
response - ServletResponse
chain - FilterChain to execute
Throws:
java.io.IOException - If there is an error executing the filter
javax.servlet.ServletException - If there is an error executing the filter