biz.hammurapi.web
Class ExpandingFilter

java.lang.Object
  extended bybiz.hammurapi.web.ExpandingFilter
All Implemented Interfaces:
javax.servlet.Filter

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

Replaces response output stream and writer with "parsing" ones, which subsitute ${expression} occurences with expression evaluation results.

Version:
$Revision: 1.1 $
Author:
Pavel Vlasov

Constructor Summary
ExpandingFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
           
 void init(javax.servlet.FilterConfig filterConfig)
          Init method for this filter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpandingFilter

public ExpandingFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Init method for this filter

Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest request,
                     javax.servlet.ServletResponse response,
                     javax.servlet.FilterChain chain)
              throws java.io.IOException,
                     javax.servlet.ServletException
Specified by:
doFilter in interface javax.servlet.Filter
Parameters:
request - The servlet request we are processing
chain - The filter chain we are processing
Throws:
java.io.IOException - if an input/output error occurs
javax.servlet.ServletException - if a servlet error occurs

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter


Copyright © 2006 Hammurapi Group. All Rights Reserved.