Sample Code for HTTP Server Configuration File


<?xml version="1.0"  encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//
DTD Configure 1.2//EN" "http://jetty.mortbay.org/configure_1_2.dtd">
<Configure class="org.mortbay.jetty.Server">
<Call name="instance" class="org.mortbay.util.Log">
<Call name="disableLog"/>
			<Call name="add">
				<Arg>
						<New class="org.mortbay.util.log4j.Log4jSink">
							<Call name="start"/>
						</New>
				</Arg>
			</Call>
</Call>
<Call name="addListener">
			<Arg>
				<New class="org.mortbay.http.SslListenr">
						<Set name="Port"><SystemProperty name=
                "jetty.port" default="80"/></Set>
						<Set name="MinThreads">5</Set>
						<Set name="MaxThreads">100</Set>
						<Set name="MaxIdleTimeMs">3000</Set>
						<Set name="LowResourcePersistTimeMs">5000</Set>
						<Set name="PoolName">WebThread</Set>
				</New>
			</Arg>
</Call>
<Call name="addListener">
		<Arg>
			<New class="org.mortbay.http.SslListenr">
				<Set name="Port">443</Set>
				<Set name="Keystore"><SystemProperty name=
           "jetty.home" default="."/>/keystore</Set>
				<Set name="Password">jetty4U</Set>
				<Set name="KeyPassword">jetty4U</Set>
			</New>
		</Arg>
</Call>
<Call name="addWebApplication">
		<Arg>/<Arg>
		<Arg><SystemProperty name="jetty.home" default="."/>/web</Arg>
	</Call>
</Configure>