META-INF.web-fragment.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <!-- JSR 315: Java Servlet 3.0 Specification --> <web-fragment xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd" version="3.0"> <name>devhelper</name> <distributable /> <!-- Request Id Init Filter --> <filter> <filter-name>requestIdInitFilter</filter-name> <filter-class>com.github.jerryxia.devhelper.web.filter.RequestIdInitFilter</filter-class> <init-param> <param-name>requestIdResponseHeaderName</param-name> <param-value>X-Call-RequestId</param-value> </init-param> </filter> <filter-mapping> <filter-name>requestIdInitFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> </filter-mapping> <!-- Request Capture Filter --> <filter> <filter-name>requestCaptureFilter</filter-name> <filter-class>com.github.jerryxia.devhelper.requestcapture.support.servlet.RequestCaptureFilter</filter-class> <init-param> <param-name>exclusions</param-name> <param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/requestcapture/*,/druid/*,/monitoring</param-value> </init-param> <init-param> <param-name>replayRequestIdRequestHeaderName</param-name> <param-value></param-value> </init-param> </filter> <filter-mapping> <filter-name>requestCaptureFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> </filter-mapping> <!-- Request Capture Servlet --> <servlet> <servlet-name>requestCaptureWebServlet</servlet-name> <servlet-class>com.github.jerryxia.devhelper.requestcapture.support.servlet.RequestCaptureWebServlet</servlet-class> <init-param> <param-name>resetEnable</param-name> <param-value>true</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>requestCaptureWebServlet</servlet-name> <url-pattern>/requestcapture/*</url-pattern> </servlet-mapping> <!-- Snoop Servlet <servlet> <servlet-name>snoopServlet</servlet-name> <servlet-class>com.github.jerryxia.devhelper.snoop.support.servlet.SnoopServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>snoopServlet</servlet-name> <url-pattern>/snoop</url-pattern> </servlet-mapping> --> <!-- BootstrapperContextListener --> <listener> <listener-class>com.github.jerryxia.devhelper.web.listener.BootstrapperContextListener</listener-class> </listener> </web-fragment>