com.missiondata.oss.lakeshore
Class XMLFormattingFilter
java.lang.Object
com.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>
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 |
XMLFormattingFilter
public XMLFormattingFilter()
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