META-INF.web-fragment.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devhelper Show documentation
Show all versions of devhelper Show documentation
This is a helper tool library in developing or testing java web application.
<?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> <!-- 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>enabled</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>exclusions</param-name> <param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/requestcapture/*,/druid/*</param-value> </init-param> <init-param> <param-name>replayRequestIdRequestHeaderName</param-name> <param-value></param-value> </init-param> <init-param> <param-name>maxPayloadLength</param-name> <param-value>10240</param-value> </init-param> </filter> <filter-mapping> <filter-name>requestCaptureFilter</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> <dispatcher>INCLUDE</dispatcher> <dispatcher>ERROR</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> <!-- BootstrapperContextListener --> <listener> <listener-class>com.github.jerryxia.devhelper.web.listener.BootstrapperContextListener</listener-class> </listener> </web-fragment>