Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 2014 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany.
    All rights reserved. This program and the accompanying materials
    are made available under the terms of the Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)
    which accompanies this distribution, and is available at http://creativecommons.org/licenses/by-nd/4.0/

    Contributors:
         Leibniz Institute of Plant Genetics and Crop Plant Research (IPK), Gatersleben, Germany - RMI Client, FileChooser and WebDAV

-->
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	id="WebApp_ID" version="2.5">
	<display-name>webdav-example</display-name>
	<welcome-file-list>
		<welcome-file>index.html</welcome-file>
		<welcome-file>index.htm</welcome-file>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>default.html</welcome-file>
		<welcome-file>default.htm</welcome-file>
		<welcome-file>default.jsp</welcome-file>
	</welcome-file-list>

	<filter>
        <filter-name>MiltonFilter</filter-name>
        <filter-class>io.milton.servlet.MiltonFilter</filter-class>
        
        <!-- This param shows how to exclude certain paths from the MiltonFilter -->
        <!-- These paths will "fall through" the filter and be handled as normal servlet resources -->
        <init-param>
            <param-name>milton.exclude.paths</param-name>
            <param-value>/myExcludedPaths,/moreExcludedPaths</param-value>
        </init-param>
        <init-param>
            <param-name>resource.factory.class</param-name>
            <param-value>de.ipk_gatersleben.bit.bi.edal.webdav.wrapper.EDALResourceFactory</param-value>
        </init-param>
        <!--
        <init-param>
            <param-name>response.handler.class</param-name>
            <param-value>de.ipk_gatersleben.bit.bi.edal.webdav.wrapper.EdalHttp11ResponseHandler</param-value>
        </init-param>
         -->      
         <!--  
        <init-param>
            <param-name>filter_1</param-name>
            <param-value>io.milton.http.DebugFilter</param-value>
        </init-param>   
        -->    
        <init-param>
            <param-name>milton.configurator</param-name>
            <param-value>de.ipk_gatersleben.bit.bi.edal.webdav.wrapper.EdalMiltonConfigurator</param-value>
        </init-param>
    </filter>

	<filter-mapping>
		<filter-name>MiltonFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

</web-app>
New to GrepCode? Check out our FAQ X