public class JAMonFilter
extends javax.servlet.http.HttpServlet
implements javax.servlet.Filter
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<display-name>fdsapi</display-name>
<filter>
<filter-name>JAMonFilter</filter-name>
<filter-class>com.jamonapi.JAMonFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>JAMonFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--
<servlet>
<servlet-name>demo</servlet-name>
<jsp-file>/demo.jsp</jsp-file>
</servlet>
-->
</web-app>
Constructor and Description |
---|
JAMonFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
Called as part of the standard servlet contract before a page is requested.
|
protected String |
getURI(javax.servlet.ServletRequest request) |
void |
init(javax.servlet.FilterConfig filterConfig) |
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain filterChain) throws IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
IOException
javax.servlet.ServletException
protected String getURI(javax.servlet.ServletRequest request)
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
Copyright © 2015. All rights reserved.