<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <!-- This is the jetty specific web application configuration file. When starting a Web Application, the WEB-INF/web-jetty.xml file is looked for and if found, treated as a org.mortbay.xml.XmlConfiguration file and is applied to the org.mortbay.jetty.servlet.WebApplicationContext objet --> <Configure class="org.mortbay.jetty.servlet.WebApplicationContext"> <Set name="statsOn" type="boolean">true</Set> <Call name="getWebApplicationHandler"> <Set name="usingCookies">true</Set> </Call> <!-- get in ahead of the default handlers --> <!-- Uncomment to add a sample ExpiryHandler. <Call name="addHandler"> <Arg type="int">0</Arg> <Arg><New class="org.mortbay.http.handler.ExpiryHandler"> <Set name="TimeToLive">600</Set> </New></Arg> </Call> --> <!-- Uncomment to add a sample SetResponseHeadersHandler. <Call name="addHandler"> <Arg type="int">0</Arg> <Arg><New class="org.mortbay.http.handler.SetResponseHeadersHandler"> <Call name="setHeaderValue"> <Arg>P3P</Arg><Arg>Put Your Value Here</Arg> </Call> <Call name="setHeaderValues"> <Arg>TestMultiValued</Arg> <Arg> <Array type="String"> <Item>Value1</Item> <Item>Value2</Item> <Item>Value3</Item> </Array> </Arg> </Call> </New></Arg> </Call> --> <!-- Uncomment to restrict context by real host <Set name="Hosts"> <Array type="java.lang.String"> <Item>127.0.0.1</Item> </Array> </Set> --> <!-- uncomment to map context by virtual host. <Set name="virtualHosts"> <Array type="java.lang.String"> <Item></Item> <Item>127.0.0.1</Item> <Item>localhost</Item> <Item>www.acme.com</Item> </Array> </Set> --> <!-- use this section to configure the session manager --> <Call name="getServletHandler"> <!-- uncomment to create new session manager with secure random <Set name="sessionManager"> <New class="org.mortbay.jetty.servlet.HashSessionManager"> <Arg><New class="java.security.SecureRandom"/></Arg> </New> </Set> --> <Call name="getSessionManager"> <Set name="crossContextSessionIDs">true</Set> <!-- reuse sesssion ids ? --> <Set name="invalidateGlobal">true</Set> <!-- Invalidate reused session IDs together ? --> <Set name="secureCookies">true</Set> <!-- use secure cookies ? --> <Set name="httpOnly">true</Set> <!-- use M$ http only cookies ? --> <!-- uncomment to add a worker tag to the session manager <Set name="workerName">demo0</Set> --> </Call> </Call> <Call name="addServlet"> <Arg>/other/*</Arg> <Arg>org.mortbay.jetty.servlet.Default</Arg> <Call name="setInitParameter"> <Arg>resourceBase</Arg> <Arg>/tmp</Arg> </Call> <Call name="start"/> </Call> <!-- override classloader settings to allow this webapp to see Jetty implementation classes --> <!-- Server classes are hidden from a HttpContext or webapp --> <Set name="serverClasses"> <Array type="java.lang.String"> </Array> </Set> </Configure>