se.kmr.scam.client.http.filter
Class TemplateFilter

java.lang.Object
  extended byse.kmr.scam.client.http.filter.TemplateFilter
All Implemented Interfaces:
Filter
Direct Known Subclasses:
DownloadFilter, MultipartEncodeFilter, StandardEncodeFilter

public abstract class TemplateFilter
extends Object
implements Filter

A filter template.

Version:
$Revision: 1.3 $
Author:
Jöran
Created:
den 11 december 2002

Constructor Summary
TemplateFilter()
           
 
Method Summary
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          Process this filter and any subsequent filters
abstract  void doMainProcessing(ServletRequest request, ServletResponse response, FilterChain chain)
          Process this filter
 FilterConfig getFilterConfig()
          Gets the filterConfig attribute of the TemplateFilter object
 void init(FilterConfig filterConfig)
          Initialize the filter
 void setFilterConfig(FilterConfig filterConfig)
          Sets the filterConfig attribute of the TemplateFilter object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.Filter
destroy
 

Constructor Detail

TemplateFilter

public TemplateFilter()
Method Detail

doFilter

public void doFilter(ServletRequest request,
                     ServletResponse response,
                     FilterChain chain)
              throws IOException,
                     ServletException
Process this filter and any subsequent filters

Specified by:
doFilter in interface Filter
Parameters:
request - current request
response - current response
chain - subsequent filters
Throws:
IOException - thrown in case of exception in I/O operations
ServletException - thrown in case of exception in prosessing the filter

init

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

Specified by:
init in interface Filter
Parameters:
filterConfig - initalize the filer with this configurartion
Throws:
ServletException - thrown in case of exception initialize the filter

doMainProcessing

public abstract void doMainProcessing(ServletRequest request,
                                      ServletResponse response,
                                      FilterChain chain)
                               throws IOException,
                                      ServletException
Process this filter

Parameters:
request - current request
response - current response
chain - subsequent filters
Throws:
IOException - thrown in case of exception in I/O operations
ServletException - thrown in case of exception in prosessing the filter

setFilterConfig

public void setFilterConfig(FilterConfig filterConfig)
Sets the filterConfig attribute of the TemplateFilter object

Parameters:
filterConfig - The new filterConfig value

getFilterConfig

public FilterConfig getFilterConfig()
Gets the filterConfig attribute of the TemplateFilter object

Returns:
The filterConfig value


Copyright © 2003 SCAM. All Rights Reserved.