Skip to content

Instantly share code, notes, and snippets.

@flurrydev
Last active August 29, 2015 14:01
Show Gist options
  • Save flurrydev/7d7eb519455e870ab6fb to your computer and use it in GitHub Desktop.
Save flurrydev/7d7eb519455e870ab6fb to your computer and use it in GitHub Desktop.
LogRequest Sample web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<filter>
<filter-name>LogRequestFilter</filter-name>
<filter-class>com.flurry.util.logRequest.LogRequestFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LogRequestFilter</filter-name>
<!-- If the server serves lots of static content, the URL pattern could just
apply relevent logic-based endpoints -->
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Other filters and servlets go below -->
</web-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment