Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] Reference environment variables in jetty descriptors?

Is it possible to refer environment variables in jetty descriptors?
I am trying to avoid hardcoding proxy values in jetty-websocket-httpclient.xml:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">

<Configure class="org.eclipse.jetty.client.HttpClient">
<Arg>
<New class="org.eclipse.jetty.util.ssl.SslContextFactory" />
</Arg>
<Get name="proxyConfiguration">
<Get name="proxies">
<Call name="add">
<Arg>
<New class="org.eclipse.jetty.client.HttpProxy">
<Arg type="String">HERE</Arg>
<Arg type="Integer">HERE</Arg>
</New>
</Arg>
</Call>
</Get>
</Get>
</Configure>

--

Back to the top