Merge remote-tracking branch 'origin/jetty-9.4.x' into jetty-10.0.x

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2020-11-11 14:21:58 +11:00
commit 6934b94261
13 changed files with 130 additions and 135 deletions

View File

@ -31,7 +31,7 @@
<Arg><Ref refid='wac'/></Arg> <Arg><Ref refid='wac'/></Arg>
<Arg>svr</Arg> <Arg>svr</Arg>
<Arg type="java.lang.String"> <Arg type="java.lang.String">
<Ref id="Server"> <Ref refid="Server">
<Get name="class"> <Get name="class">
<Get name="name"/> <Get name="name"/>
</Get> </Get>

View File

@ -2,7 +2,7 @@
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_9_3.dtd"> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_9_3.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<Ref id="httpConnector"> <Ref refid="httpConnector">
<Call name="addEventListener"> <Call name="addEventListener">
<Arg> <Arg>
<New class="org.eclipse.jetty.maven.plugin.ServerConnectorListener"> <New class="org.eclipse.jetty.maven.plugin.ServerConnectorListener">

View File

@ -2,7 +2,7 @@
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_9_3.dtd"> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_9_3.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<Ref id="httpConnector"> <Ref refid="httpConnector">
<Call name="addEventListener"> <Call name="addEventListener">
<Arg> <Arg>
<New class="org.eclipse.jetty.maven.plugin.ServerConnectorListener"> <New class="org.eclipse.jetty.maven.plugin.ServerConnectorListener">

View File

@ -1,6 +1,10 @@
<?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> <?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">
<!-- ============================================================= --><!-- Configure the Jetty Server instance with an ID "Server" --><!-- by adding an HTTP connector. --><!-- This configuration must be used in conjunction with jetty.xml --><!-- ============================================================= --> <!-- ============================================================= -->
<!-- Configure the Jetty Server instance with an ID "Server" -->
<!-- by adding an HTTP connector. -->
<!-- This configuration must be used in conjunction with jetty.xml -->
<!-- ============================================================= -->
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- =========================================================== --> <!-- =========================================================== -->

View File

@ -4,5 +4,4 @@
<!-- ============================================================= --> <!-- ============================================================= -->
<!-- Display a Warning Message if {jetty.home} == {jetty.base} --> <!-- Display a Warning Message if {jetty.home} == {jetty.base} -->
<!-- ============================================================= --> <!-- ============================================================= -->
<Configure id="homeBaseWarning" class="org.eclipse.jetty.server.HomeBaseWarning"> <Configure id="homeBaseWarning" class="org.eclipse.jetty.server.HomeBaseWarning"/>
</Configure>

View File

@ -3,7 +3,6 @@
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Configure a factory for FileSessionStores --> <!-- Configure a factory for FileSessionStores -->
<!-- ===================================================================== --> <!-- ===================================================================== -->

View File

@ -2,10 +2,10 @@
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd"> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<New id="databaseAdaptor" class="org.eclipse.jetty.server.session.DatabaseAdaptor"> <New id="databaseAdaptor" class="org.eclipse.jetty.server.session.DatabaseAdaptor">
<Set name="DatasourceName" property="jetty.session.jdbc.datasourceName"/> <Set name="DatasourceName" property="jetty.session.jdbc.datasourceName"/>
<Set name="blobType" property="jetty.session.jdbc.blobType"/> <Set name="blobType" property="jetty.session.jdbc.blobType"/>
<Set name="longType" property="jetty.session.jdbc.longType"/> <Set name="longType" property="jetty.session.jdbc.longType"/>
<Set name="stringType" property="jetty.session.jdbc.stringType"/> <Set name="stringType" property="jetty.session.jdbc.stringType"/>
</New> </New>
</Configure> </Configure>

View File

@ -3,14 +3,14 @@
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<New id="databaseAdaptor" class="org.eclipse.jetty.server.session.DatabaseAdaptor"> <New id="databaseAdaptor" class="org.eclipse.jetty.server.session.DatabaseAdaptor">
<Call name="setDriverInfo"> <Call name="setDriverInfo">
<Arg><Property name="jetty.session.jdbc.driverClass"/></Arg> <Arg><Property name="jetty.session.jdbc.driverClass"/></Arg>
<Arg><Property name="jetty.session.jdbc.driverUrl"/></Arg> <Arg><Property name="jetty.session.jdbc.driverUrl"/></Arg>
</Call> </Call>
<Set name="blobType" property="jetty.session.jdbc.blobType"/> <Set name="blobType" property="jetty.session.jdbc.blobType"/>
<Set name="longType" property="jetty.session.jdbc.longType"/> <Set name="longType" property="jetty.session.jdbc.longType"/>
<Set name="stringType" property="jetty.session.jdbc.stringType"/> <Set name="stringType" property="jetty.session.jdbc.stringType"/>
</New> </New>
</Configure> </Configure>

View File

@ -1,72 +1,69 @@
<?xml version="1.0"?> <?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Configure a factory for JDBCSessionStores --> <!-- Configure a factory for JDBCSessionStores -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<Call name="addBean"> <Call name="addBean">
<Arg> <Arg>
<New id="sessionDataStoreFactory" class="org.eclipse.jetty.server.session.JDBCSessionDataStoreFactory"> <New id="sessionDataStoreFactory" class="org.eclipse.jetty.server.session.JDBCSessionDataStoreFactory">
<Set name="gracePeriodSec"><Property name="jetty.session.gracePeriod.seconds" default="3600" /></Set> <Set name="gracePeriodSec"><Property name="jetty.session.gracePeriod.seconds" default="3600" /></Set>
<Set name="savePeriodSec"><Property name="jetty.session.savePeriod.seconds" default="0" /></Set> <Set name="savePeriodSec"><Property name="jetty.session.savePeriod.seconds" default="0" /></Set>
<Set name="databaseAdaptor"> <Set name="databaseAdaptor">
<Ref id="databaseAdaptor"/> <Ref refid="databaseAdaptor" />
</Set> </Set>
<Set name="sessionTableSchema"> <Set name="sessionTableSchema">
<New <New class="org.eclipse.jetty.server.session.JDBCSessionDataStore$SessionTableSchema">
class="org.eclipse.jetty.server.session.JDBCSessionDataStore$SessionTableSchema"> <Set name="accessTimeColumn">
<Set name="accessTimeColumn"> <Property name="jetty.session.jdbc.schema.accessTimeColumn" default="accessTime" />
<Property name="jetty.session.jdbc.schema.accessTimeColumn" default="accessTime" /> </Set>
</Set> <Set name="contextPathColumn">
<Set name="contextPathColumn"> <Property name="jetty.session.jdbc.schema.contextPathColumn" default="contextPath" />
<Property name="jetty.session.jdbc.schema.contextPathColumn" default="contextPath" /> </Set>
</Set> <Set name="cookieTimeColumn">
<Set name="cookieTimeColumn"> <Property name="jetty.session.jdbc.schema.cookieTimeColumn" default="cookieTime" />
<Property name="jetty.session.jdbc.schema.cookieTimeColumn" default="cookieTime" /> </Set>
</Set> <Set name="createTimeColumn">
<Set name="createTimeColumn"> <Property name="jetty.session.jdbc.schema.createTimeColumn" default="createTime" />
<Property name="jetty.session.jdbc.schema.createTimeColumn" default="createTime" /> </Set>
</Set> <Set name="expiryTimeColumn">
<Set name="expiryTimeColumn"> <Property name="jetty.session.jdbc.schema.expiryTimeColumn" default="expiryTime" />
<Property name="jetty.session.jdbc.schema.expiryTimeColumn" default="expiryTime" /> </Set>
</Set> <Set name="lastAccessTimeColumn">
<Set name="lastAccessTimeColumn"> <Property name="jetty.session.jdbc.schema.lastAccessTimeColumn" default="lastAccessTime" />
<Property name="jetty.session.jdbc.schema.lastAccessTimeColumn" default="lastAccessTime" /> </Set>
</Set> <Set name="lastSavedTimeColumn">
<Set name="lastSavedTimeColumn"> <Property name="jetty.session.jdbc.schema.lastSavedTimeColumn" default="lastSavedTime" />
<Property name="jetty.session.jdbc.schema.lastSavedTimeColumn" default="lastSavedTime" /> </Set>
</Set> <Set name="idColumn">
<Set name="idColumn"> <Property name="jetty.session.jdbc.schema.idColumn" default="sessionId" />
<Property name="jetty.session.jdbc.schema.idColumn" default="sessionId" /> </Set>
</Set> <Set name="lastNodeColumn">
<Set name="lastNodeColumn"> <Property name="jetty.session.jdbc.schema.lastNodeColumn" default="lastNode" />
<Property name="jetty.session.jdbc.schema.lastNodeColumn" default="lastNode" /> </Set>
</Set> <Set name="virtualHostColumn">
<Set name="virtualHostColumn"> <Property name="jetty.session.jdbc.schema.virtualHostColumn" default="virtualHost" />
<Property name="jetty.session.jdbc.schema.virtualHostColumn" default="virtualHost" /> </Set>
</Set> <Set name="maxIntervalColumn">
<Set name="maxIntervalColumn"> <Property name="jetty.session.jdbc.schema.maxIntervalColumn" default="maxInterval" />
<Property name="jetty.session.jdbc.schema.maxIntervalColumn" default="maxInterval" /> </Set>
</Set> <Set name="mapColumn">
<Set name="mapColumn"> <Property name="jetty.session.jdbc.schema.mapColumn" default="map" />
<Property name="jetty.session.jdbc.schema.mapColumn" default="map" /> </Set>
</Set>
<Set name="schemaName"> <Set name="schemaName">
<Property name="jetty.session.jdbc.schema.schemaName" /> <Property name="jetty.session.jdbc.schema.schemaName" />
</Set> </Set>
<Set name="catalogName"> <Set name="catalogName">
<Property name="jetty.session.jdbc.schema.catalogName" /> <Property name="jetty.session.jdbc.schema.catalogName" />
</Set> </Set>
<Set name="tableName"> <Set name="tableName">
<Property name="jetty.session.jdbc.schema.table" default="JettySessions" /> <Property name="jetty.session.jdbc.schema.table" default="JettySessions" />
</Set> </Set>
</New> </New>
</Set> </Set>
</New> </New>
</Arg> </Arg>
</Call> </Call>
</Configure> </Configure>

View File

@ -3,21 +3,20 @@
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Configure a factory for DefaultSessionCache --> <!-- Configure a factory for DefaultSessionCache -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<Call name="addBean"> <Call name="addBean">
<Arg> <Arg>
<New class="org.eclipse.jetty.server.session.DefaultSessionCacheFactory"> <New class="org.eclipse.jetty.server.session.DefaultSessionCacheFactory">
<Set name="evictionPolicy"><Property name="jetty.session.evictionPolicy" default="-1" /></Set> <Set name="evictionPolicy"><Property name="jetty.session.evictionPolicy" default="-1" /></Set>
<Set name="saveOnInactiveEvict"><Property name="jetty.session.saveOnInactiveEvict" default="false" /></Set> <Set name="saveOnInactiveEvict"><Property name="jetty.session.saveOnInactiveEvict" default="false" /></Set>
<Set name="saveOnCreate"><Property name="jetty.session.saveOnCreate" default="false" /></Set> <Set name="saveOnCreate"><Property name="jetty.session.saveOnCreate" default="false" /></Set>
<Set name="removeUnloadableSessions"><Property name="jetty.session.removeUnloadableSessions" default="false"/></Set> <Set name="removeUnloadableSessions"><Property name="jetty.session.removeUnloadableSessions" default="false"/></Set>
<Set name="flushOnResponseCommit"><Property name="jetty.session.flushOnResponseCommit" default="false"/></Set> <Set name="flushOnResponseCommit"><Property name="jetty.session.flushOnResponseCommit" default="false"/></Set>
<Set name="invalidateOnShutdown"><Property name="jetty.session.invalidateOnShutdown" default="false"/></Set> <Set name="invalidateOnShutdown"><Property name="jetty.session.invalidateOnShutdown" default="false"/></Set>
</New> </New>
</Arg> </Arg>
</Call> </Call>
</Configure> </Configure>

View File

@ -3,18 +3,17 @@
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- ===================================================================== --> <!-- ===================================================================== -->
<!-- Configure a factory for NullSessionCache --> <!-- Configure a factory for NullSessionCache -->
<!-- ===================================================================== --> <!-- ===================================================================== -->
<Call name="addBean"> <Call name="addBean">
<Arg> <Arg>
<New class="org.eclipse.jetty.server.session.NullSessionCacheFactory"> <New class="org.eclipse.jetty.server.session.NullSessionCacheFactory">
<Set name="saveOnCreate"><Property name="jetty.session.saveOnCreate" default="false" /></Set> <Set name="saveOnCreate"><Property name="jetty.session.saveOnCreate" default="false" /></Set>
<Set name="removeUnloadableSessions"><Property name="jetty.session.removeUnloadableSessions" default="false"/></Set> <Set name="removeUnloadableSessions"><Property name="jetty.session.removeUnloadableSessions" default="false" /></Set>
<Set name="flushOnResponseCommit"><Property name="jetty.session.flushOnResponseCommit" default="false"/></Set> <Set name="flushOnResponseCommit"><Property name="jetty.session.flushOnResponseCommit" default="false" /></Set>
</New> </New>
</Arg> </Arg>
</Call> </Call>
</Configure> </Configure>

View File

@ -13,8 +13,6 @@
</Arg> </Arg>
</Call> </Call>
<Call name="addBean"> <Call name="addBean">
<Arg> <Arg>
<New class="org.eclipse.jetty.server.session.CachingSessionDataStoreFactory"> <New class="org.eclipse.jetty.server.session.CachingSessionDataStoreFactory">

View File

@ -2,38 +2,38 @@
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd"> <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server"> <Configure id="Server" class="org.eclipse.jetty.server.Server">
<Call name="insertHandler"> <Call name="insertHandler">
<Arg> <Arg>
<New id="InetAccessHandler" class="org.eclipse.jetty.server.handler.InetAccessHandler"> <New id="InetAccessHandler" class="org.eclipse.jetty.server.handler.InetAccessHandler">
<Call name="include"> <Call name="include">
<Arg> <Arg>
<Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit"> <Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit">
<Arg><Property name="jetty.inetaccess.include" default=""/></Arg> <Arg><Property name="jetty.inetaccess.include" default="" /></Arg>
</Call> </Call>
</Arg> </Arg>
</Call> </Call>
<Call name="exclude"> <Call name="exclude">
<Arg> <Arg>
<Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit"> <Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit">
<Arg><Property name="jetty.inetaccess.exclude" default=""/></Arg> <Arg><Property name="jetty.inetaccess.exclude" default="" /></Arg>
</Call> </Call>
</Arg> </Arg>
</Call> </Call>
<Call name="includeConnectors"> <Call name="includeConnectors">
<Arg> <Arg>
<Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit"> <Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit">
<Arg><Property name="jetty.inetaccess.includeConnectors" default=""/></Arg> <Arg><Property name="jetty.inetaccess.includeConnectors" default="" /></Arg>
</Call> </Call>
</Arg> </Arg>
</Call> </Call>
<Call name="excludeConnectors"> <Call name="excludeConnectors">
<Arg> <Arg>
<Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit"> <Call class="org.eclipse.jetty.util.StringUtil" name="csvSplit">
<Arg><Property name="jetty.inetaccess.excludeConnectors" default=""/></Arg> <Arg><Property name="jetty.inetaccess.excludeConnectors" default="" /></Arg>
</Call> </Call>
</Arg> </Arg>
</Call> </Call>
</New> </New>
</Arg> </Arg>
</Call> </Call>
</Configure> </Configure>