Enable case insensitive matching of http headers 35/133535/3
authorMarek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
Thu, 2 Mar 2023 11:43:50 +0000 (12:43 +0100)
committerMarek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
Fri, 3 Mar 2023 11:42:35 +0000 (12:42 +0100)
commit508489a4ea7000b9e24cdb0ea48f5357010d783e
treed0ae300483b4fb943194ce8f0535a19eb9c1b8f5
parent928348966d924f7cf41077f98ab6665ea6aec512
Enable case insensitive matching of http headers

This change creates simple case insensitive map implementation that
is used in HttpSdcResponse class to store the response headers.
Generally HTTP headers are supposed to be case insensitive and
sometimes get transformed (in our case - by istio sidecar) to lower case.
With this change lower case will still be matched and the original
behaviour will not break.

Issue-ID: SDC-4233
Signed-off-by: Marek Szwałkiewicz <marek.szwalkiewicz@external.t-mobile.pl>
Change-Id: I1cb9d9e75ff656ccb12c690c553bccc672332a12
sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpRequestFactory.java
sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpSdcClient.java
sdc-distribution-client/src/main/java/org/onap/sdc/http/HttpSdcResponse.java
sdc-distribution-client/src/main/java/org/onap/sdc/http/IHttpSdcClient.java
sdc-distribution-client/src/main/java/org/onap/sdc/http/SdcConnectorClient.java
sdc-distribution-client/src/main/java/org/onap/sdc/utils/CaseInsensitiveMap.java [new file with mode: 0644]
sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpAsdcClientTest.java
sdc-distribution-client/src/test/java/org/onap/sdc/http/HttpRequestFactoryTest.java
sdc-distribution-client/src/test/java/org/onap/sdc/http/SdcConnectorClientTest.java