From 2b8a7df25878f546ace25373f44baeb026cf6d2b Mon Sep 17 00:00:00 2001 From: Christof Rabensteiner Date: Tue, 20 Aug 2019 11:13:28 +0200 Subject: Add Custom Http Headers to HTTP Clients - Change app2mzs schema: Add Custom Headers to ClientType Element. - Set custom headers in ClientFactory. - Parse custom headers from spring environment. - Merge custom headers from two different profiles. - Add example to application.yaml. - Test conversion of custom headers from spring profile - Test merging and overriding custom headers. --- src/main/resources/application.yaml | 10 +++++++--- src/main/resources/mzs/app2mzs.xsd | 9 +++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) (limited to 'src/main/resources') diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index ce4d892..0380cf5 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -61,11 +61,15 @@ delivery-request-configuration-profiles: # Mandatory url: http://localhost:8082/tnvz/ + connection-timeout: 0 + receive-timeout: 0 # Optional - # ssl: ... - # connection-timeout: ... - # receive-timeout: ... + #ssl: ... + #custom-http-headers: + # X-PVP-NAME-1: VALUE-X + # X-PVP-NAME-2: VALUE-Y + # ... # Mandatory # Parameters for the connection to msg. diff --git a/src/main/resources/mzs/app2mzs.xsd b/src/main/resources/mzs/app2mzs.xsd index d19ff3b..7ae243b 100644 --- a/src/main/resources/mzs/app2mzs.xsd +++ b/src/main/resources/mzs/app2mzs.xsd @@ -3,6 +3,7 @@ + @@ -98,6 +99,7 @@ + @@ -118,6 +120,13 @@ + + + + + + + -- cgit v1.2.3