|
Jetty example source code file (web.xml)
The Jetty web.xml source code<?xml version="1.0" encoding="ISO-8859-1"?> <web-app 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-app_2_5.xsd" version="2.5"> <display-name>Test WebApp <listener> <listener-class>com.acme.TestListener </listener> <filter> <filter-name>TestFilter <filter-class>com.acme.TestFilter </filter> <filter-mapping> <filter-name>TestFilter <url-pattern>/dump/* <url-pattern>/dispatch/* <url-pattern>*.dump <servlet-name>* <dispatcher>REQUEST <dispatcher>FORWARD <dispatcher>INCLUDE <dispatcher>ERROR </filter-mapping> <filter> <filter-name>MultiPart <filter-class>org.mortbay.servlet.MultiPartFilter <init-param> <param-name>deleteFiles <param-value>true </init-param> </filter> <filter-mapping> <filter-name>MultiPart <url-pattern>/dump/* </filter-mapping> <filter> <filter-name>GzipFilter <filter-class>org.mortbay.servlet.jetty.IncludableGzipFilter <init-param> <param-name>bufferSize <param-value>8192 </init-param> <init-param> <param-name>minGzipSize <param-value>1024 </init-param> <init-param> <param-name>userAgent <param-value>(?:Mozilla[^\(]*\(compatible;\s*+([^;]*);.*)|(?:.*?([^\s]+/[^\s]+).*) </init-param> <init-param> <param-name>cacheSize <param-value>1024 </init-param> <init-param> <param-name>excludedAgents <param-value>MSIE 6.0 </init-param> </filter> <filter-mapping> <filter-name>GzipFilter <url-pattern>/* </filter-mapping> <filter> <filter-name>Chat <filter-class>com.acme.ChatFilter </filter> <filter-mapping> <filter-name>Chat <url-pattern>/chat/* <dispatcher>REQUEST <dispatcher>FORWARD </filter-mapping> <filter> <filter-name>Throttle <filter-class>org.mortbay.servlet.ThrottlingFilter </filter> <filter-mapping> <filter-name>Throttle <url-pattern>/dump/throttle/* </filter-mapping> <!-- Comment out to support PUT and DELETE <filter> <filter-name>RestFilter <filter-class>org.mortbay.servlet.RestFilter <init-param> <param-name>maxPutSize Other Jetty examples (source code examples)Here is a short list of links related to this Jetty web.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.