com.missiondata.oss.lakeshore
Class XMLFormattingFilter

java.lang.Object
  extended bycom.missiondata.oss.lakeshore.XMLFormattingFilter
All Implemented Interfaces:
javax.servlet.Filter

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

Format Lakeshore output nicely.

 <filter>
   <filter-name>PrettyPrintXML</filter-name>
   <filter-class>com.missiondata.oss.lakeshore.XMLFormattingFilter</filter-class>
 </filter>

 <filter-mapping>
   <filter-name>PrettyPrintXML</filter-name>
   <url-pattern>/*</url-pattern>
 </filter-mapping>

 


Constructor Summary
XMLFormattingFilter()
           
 
Method Summary
 void destroy()
           
 void doFilter(javax.servlet.ServletRequest servletRequest, javax.servlet.ServletResponse servletResponse, javax.servlet.FilterChain filterChain)
           
 void init(javax.servlet.FilterConfig filterConfig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLFormattingFilter

public XMLFormattingFilter()
Method Detail

init

public void init(javax.servlet.FilterConfig filterConfig)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

doFilter

public void doFilter(javax.servlet.ServletRequest servletRequest,
                     javax.servlet.ServletResponse servletResponse,
                     javax.servlet.FilterChain filterChain)
              throws javax.servlet.ServletException,
                     java.io.IOException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException
java.io.IOException

destroy

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