<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE Configure
  PUBLIC "-//Mort Bay Consulting//DTD Configure 1.1//EN"
  "http://jetty.mortbay.org/configure_1_2.dtd">

<Configure class="org.mortbay.jetty.Server">

  <Call name="getContext">
    <Arg>/test</Arg>

    <Call name="getWebApplicationHandler">
      <Call name="getServletHolder">
      	<Arg>ServletRedirector</Arg>
        <Call name="setInitParameter">
          <Arg>param1</Arg>
          <Arg>value1 used for testing</Arg>
        </Call>
      </Call>
    </Call>

    <Call name="getWebApplicationHandler">
      <Call name="getServletHolder">
        <Arg>JspRedirector</Arg>
        <Call name="setInitParameter">
          <Arg>param1</Arg>
          <Arg>value1 used for testing</Arg>
        </Call>
      </Call>
    </Call>

    <Call name="getServletHandler">
      <Call name="newServletHolder">
        <Arg>TestJsp</Arg>
        <Arg>org.apache.jasper.servlet.JspServlet</Arg>
        <Arg>/test/test.jsp</Arg>
      </Call>
    </Call>

    <Call name="addServlet">
      <Arg>/ServletRedirectorOverride</Arg>
      <Arg>org.apache.cactus.server.ServletTestRedirector</Arg>
      <Call name="setInitParameter">
      	<Arg>param2</Arg>
      	<Arg>value2 used for testing</Arg>
      </Call>
    </Call>
    
    <Call name="addServlet">
      <Arg>/ServletRedirectorSecure</Arg>
      <Arg>org.apache.cactus.server.ServletTestRedirector</Arg>
    </Call>
  
    <Call name="setRealm">
      <Arg>
        <New class="org.mortbay.http.HashUserRealm"/>
      </Arg>
    </Call>
    
    <Call name="getRealm">
      <Call name="put">
        <Arg>testuser</Arg>
        <Arg>testpassword</Arg>
      </Call>
      <Call name="addUserToRole">
        <Arg>testuser</Arg>
        <Arg>test</Arg>
      </Call>
    </Call>
  </Call>
</Configure>
 
  
  