<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">

<!-- ============================================================= -->
<!-- Configure an HTTPS connector.                                 -->
<!-- This configuration must be used in conjunction with jetty.xml -->
<!-- and jetty-ssl.xml.                                            -->
<!-- ============================================================= -->
<Configure id="Server" class="org.eclipse.jetty.server.Server">
	<Call name="addConnector">
		<Arg>
			<Ref id="sslConnector">
			  <Call name="addIfAbsentConnectionFactory">
				<Arg>
				  <New class="org.eclipse.jetty.server.SslConnectionFactory">
					<Arg name="next">http/1.1</Arg>
					<Arg name="sslContextFactory"><Ref refid="sslContextFactory"/></Arg>
				  </New>
				</Arg>
			  </Call>

			  <Call name="addConnectionFactory">
				<Arg>
				  <New class="org.eclipse.jetty.server.HttpConnectionFactory">
					<Arg name="config"><Ref refid="sslHttpConfig" /></Arg>
				  </New>
				</Arg>
			  </Call>
		  </Ref>
	  </Arg>
  </Call>
</Configure>
