aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-06-27 14:41:51 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-06-27 14:47:22 +0200
commit9556dc6bd7e327dfbfc3c2d5228ad920ad7b9f8e (patch)
tree01db0a1c4c94c66118256e17ecdb821e04ed657c /src/main/resources
parenta8e726382b0472ad030d7a579fe8d6878a216bd4 (diff)
downloadmoa-zs-9556dc6bd7e327dfbfc3c2d5228ad920ad7b9f8e.tar.gz
moa-zs-9556dc6bd7e327dfbfc3c2d5228ad920ad7b9f8e.tar.bz2
moa-zs-9556dc6bd7e327dfbfc3c2d5228ad920ad7b9f8e.zip
Inject Configurable HTTP Policies to MsgClient
- Refactor: Get rid of MsgClient, because MsgClientFactory can do all the work. - Add Connection Timeout and Request Timeout (Policies of HTTP Client) to mzs:DeliveryRequest/Config and application.yaml. - Update readme: Add JDK 12 Requirement
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/application.yaml11
-rw-r--r--src/main/resources/mzs/app2mzs.xsd2
2 files changed, 11 insertions, 2 deletions
diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml
index 2d376a8..1903067 100644
--- a/src/main/resources/application.yaml
+++ b/src/main/resources/application.yaml
@@ -9,12 +9,19 @@ spring:
# Configure parameters here or in DeliveryRequest/Config.
# Choose a profile in DeliveryRequest/Config/ProfileId.
-# If a parameter is missing, moa zs falls back to default
+# If a parameter is missing, moa zs falls back to "default"
# Order: DeliveryRequest/Config > [chosen-profile] > default
delivery-request-configuration-profiles:
default:
perform-query-person-request: false
- msg-client.url: http://localhost:8081/services/DeliveryRequest
+ msg-client:
+ url: http://localhost:8081/services/DeliveryRequest
+ # Time in ms after which a connection will be closed.
+ # 0 means indefinitely.
+ connection-timeout: 0
+ # Time in ms that the client waits after having sent the request.
+ # 0 means indefinitely.
+ receive-timeout: 0
ssl-profile:
perform-query-person-request: false
diff --git a/src/main/resources/mzs/app2mzs.xsd b/src/main/resources/mzs/app2mzs.xsd
index 956cd31..d99b248 100644
--- a/src/main/resources/mzs/app2mzs.xsd
+++ b/src/main/resources/mzs/app2mzs.xsd
@@ -92,6 +92,8 @@
<xs:sequence>
<xs:element name="URL" type="xs:anyURI" />
<xs:element ref="SSL" minOccurs="0"/>
+ <xs:element name="ConnectionTimeout" minOccurs="0" type="xs:nonNegativeInteger" />
+ <xs:element name="ReceiveTimeout" minOccurs="0" type="xs:nonNegativeInteger" />
</xs:sequence>
</xs:complexType>
<xs:element name="SSL" type="SSLType" />