DLESE Tools
v1.6.0

org.dlese.dpc.webapps.servlets.filters
Class XMLValidationFilter

java.lang.Object
  extended by org.dlese.dpc.webapps.servlets.filters.FilterCore
      extended by org.dlese.dpc.webapps.servlets.filters.XMLValidationFilter
All Implemented Interfaces:
Filter

Deprecated. Use XMLPostProcessingFilter instead

public final class XMLValidationFilter
extends FilterCore

Performs XML validation and gzipping of the pre-compiled HTTP response content. A caller wishing to invoke this filter should use an HTTP request parameter 'rt' set to 'validate.'

This is implemented using a servlet response Filter that checks the content for validity against an XML schema or DTD, which must be referenced in the content itself. This filter also perform gzip compression of all output, if supported by the browser. See More Servlets and JavaServer Pages, chapter 9 for more information on Filters.

Author:
John Weatherley
See Also:
XMLPostProcessingFilter

Constructor Summary
XMLValidationFilter()
          Deprecated.  
 
Method Summary
 void destroy()
          Deprecated. Destroy is called at application shut-down time.
 void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
          Deprecated. Performs XML validation and gzipping of the HTTP response content.
 void init(FilterConfig config)
          Deprecated. Init is called once at application start-up.
protected  void prtln(String s)
          Deprecated. Output a line of text to standard out, with datestamp, if debug is set to true.
protected  void prtlnErr(String s)
          Deprecated. Output a line of text to error out, with datestamp.
protected  void setDebugzz(boolean db)
          Deprecated. Sets the debug attribute of the XMLValidationFilter object
 
Methods inherited from class org.dlese.dpc.webapps.servlets.filters.FilterCore
getDateStamp, handleErrorCodes, isGzipSupported, prtlnCore, writeGzipResponse, writeRegularResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLValidationFilter

public XMLValidationFilter()
Deprecated. 
Method Detail

doFilter

public final void doFilter(ServletRequest request,
                           ServletResponse response,
                           FilterChain chain)
                    throws ServletException,
                           IOException
Deprecated. 
Performs XML validation and gzipping of the HTTP response content. A caller wishing to envoke this filter should use an HTTP request parameter 'rt' set to 'validate.'

Parameters:
request - The request
response - The response
chain - The chain of Filters
Throws:
ServletException - Iff error
IOException - Iff IO error

init

public void init(FilterConfig config)
          throws ServletException
Deprecated. 
Init is called once at application start-up.

Parameters:
config - The FilterConfig object that holds the ServletContext and init information.
Throws:
ServletException - If an error occurs

destroy

public void destroy()
Deprecated. 
Destroy is called at application shut-down time.


prtlnErr

protected final void prtlnErr(String s)
Deprecated. 
Output a line of text to error out, with datestamp.

Parameters:
s - The text that will be output to error out.

prtln

protected final void prtln(String s)
Deprecated. 
Output a line of text to standard out, with datestamp, if debug is set to true.

Parameters:
s - The String that will be output.

setDebugzz

protected final void setDebugzz(boolean db)
Deprecated. 
Sets the debug attribute of the XMLValidationFilter object

Parameters:
db - The new debug value

DLESE Tools
v1.6.0