| 1 |
<?xml version="1.0"?> |
| 2 |
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd"> |
| 3 |
|
| 4 |
<Configure id="Server" class="org.eclipse.jetty.server.Server"> |
| 5 |
|
| 6 |
|
| 7 |
<!-- ===================================================================== --> |
| 8 |
<!-- Configure a factory for GCloudSessionDataStores --> |
| 9 |
<!-- ===================================================================== --> |
| 10 |
<Call name="addBean"> |
| 11 |
<Arg> |
| 12 |
<New id="sessionDataStoreFactory" class="org.eclipse.jetty.gcloud.session.GCloudSessionDataStoreFactory"> |
| 13 |
<Set name="gracePeriodSec" property="jetty.session.gracePeriod.seconds"/> |
| 14 |
<Set name="savePeriodSec" property="jetty.session.savePeriod.seconds"/> |
| 15 |
<Set name="maxRetries" property="jetty.session.gcloud.maxRetries"/> |
| 16 |
<Set name="backoffMs" property="jetty.session.gcloud.backoffMs"/> |
| 17 |
<Set name="namespace" property="jetty.session.gcloud.namespace"/> |
| 18 |
<Set name="host" property="jetty.session.gcloud.host"/> |
| 19 |
<Set name="projectId" property="jetty.session.gcloud.projectId"/> |
| 20 |
<Set name="entityDataModel"> |
| 21 |
<New class="org.eclipse.jetty.gcloud.session.GCloudSessionDataStore$EntityDataModel"> |
| 22 |
<Set name="kind" property="jetty.session.gcloud.model.kind"/> |
| 23 |
<Set name="id" property="jetty.session.gcloud.model.id"/> |
| 24 |
<Set name="contextPath" property="jetty.session.gcloud.model.contextPath"/> |
| 25 |
<Set name="vhost" property="jetty.session.gcloud.model.vhost"/> |
| 26 |
<Set name="accessed" property="jetty.session.gcloud.model.accessed"/> |
| 27 |
<Set name="lastAccessed" property="jetty.session.gcloud.model.lastAccessed"/> |
| 28 |
<Set name="createTime" property="jetty.session.gcloud.model.createTime"/> |
| 29 |
<Set name="cookieSetTime" property="jetty.session.gcloud.model.cookieSetTime"/> |
| 30 |
<Set name="lastNode" property="jetty.session.gcloud.model.lastNode"/> |
| 31 |
<Set name="lastSaved" property="jetty.session.gcloud.model.lastSaved"/> |
| 32 |
<Set name="expiry" property="jetty.session.gcloud.model.expiry"/> |
| 33 |
<Set name="maxInactive" property="jetty.session.gcloud.model.maxInactive"/> |
| 34 |
<Set name="attributes" property="jetty.session.gcloud.model.attributes"/> |
| 35 |
</New> |
| 36 |
</Set> |
| 37 |
</New> |
| 38 |
</Arg> |
| 39 |
</Call> |
| 40 |
|
| 41 |
</Configure> |