All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.web-fragment.xml Maven / Gradle / Ivy

Go to download

This is a helper tool library in developing or testing java web application.

There is a newer version: 1.1.2
Show newest version
<?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.support.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,/admin/requestcapture/*,/admin/elmah/*</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.support.web.servlet.DispatchWebRequestServlet</servlet-class>
        <init-param>  
            <param-name>resetEnable</param-name>
            <param-value>true</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>requestCaptureWebServlet</servlet-name>
        <url-pattern>/admin/requestcapture/*</url-pattern>
    </servlet-mapping>

    <!-- Elmah Servlet -->
    <servlet>
        <servlet-name>elmahServlet</servlet-name>
        <servlet-class>com.github.jerryxia.devhelper.elmah.support.servlet.ElmahServlet</servlet-class>
        <init-param>
            <param-name>errorRecordStorage</param-name>
            <param-value>ErrorRecordFileStorage</param-value>
        </init-param>
        <init-param>
            <param-name>errorRecordFileStoragePath</param-name>
            <param-value></param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>elmahServlet</servlet-name>
        <url-pattern>/admin/elmah/*</url-pattern>
    </servlet-mapping>

    <!-- BootstrapperContextListener -->
    <listener>
      <listener-class>com.github.jerryxia.devhelper.support.web.listener.BootstrapperContextListener</listener-class>
    </listener>
</web-fragment>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy