diff options
author | egernug <gerard.nugent@est.tech> | 2019-01-31 10:08:35 +0000 |
---|---|---|
committer | egernug <gerard.nugent@est.tech> | 2019-01-31 10:08:35 +0000 |
commit | 9e245bc37e059df859ada260425d744e9a1e8cf5 (patch) | |
tree | ec8ed870a72cad47260505cd99089bee1d0487ee /datafile-dmaap-client/src/main | |
parent | 8a84a9d39fe71984bd5d861e8c865e748ca3df30 (diff) |
Change ATT Meta Header for generic alternative
Change-Id: Ie4ba3d8afebf7cda3dc0a841c5c5fa5d4cd95046
Issue-ID: DMAAP-999
Signed-off-by: egernug <gerard.nugent@est.tech>
Diffstat (limited to 'datafile-dmaap-client/src/main')
-rw-r--r-- | datafile-dmaap-client/src/main/java/org/onap/dcaegen2/collectors/datafile/service/producer/DmaapProducerReactiveHttpClient.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/datafile-dmaap-client/src/main/java/org/onap/dcaegen2/collectors/datafile/service/producer/DmaapProducerReactiveHttpClient.java b/datafile-dmaap-client/src/main/java/org/onap/dcaegen2/collectors/datafile/service/producer/DmaapProducerReactiveHttpClient.java index a4b37c58..b3c8c3ef 100644 --- a/datafile-dmaap-client/src/main/java/org/onap/dcaegen2/collectors/datafile/service/producer/DmaapProducerReactiveHttpClient.java +++ b/datafile-dmaap-client/src/main/java/org/onap/dcaegen2/collectors/datafile/service/producer/DmaapProducerReactiveHttpClient.java @@ -57,7 +57,7 @@ import reactor.core.publisher.Flux; */ public class DmaapProducerReactiveHttpClient { - private static final String X_ATT_DR_META = "X-ATT-DR-META"; + private static final String X_DMAAP_DR_META = "X-DMAAP-DR-META"; private static final String NAME_JSON_TAG = "name"; private static final String INTERNAL_LOCATION_JSON_TAG = "internalLocation"; private static final String URI_SEPARATOR = "/"; @@ -145,7 +145,7 @@ public class DmaapProducerReactiveHttpClient { JsonElement metaData = new JsonParser().parse(new CommonFunctions().createJsonBody(model)); String name = metaData.getAsJsonObject().remove(NAME_JSON_TAG).getAsString(); metaData.getAsJsonObject().remove(INTERNAL_LOCATION_JSON_TAG); - put.addHeader(X_ATT_DR_META, metaData.toString()); + put.addHeader(X_DMAAP_DR_META, metaData.toString()); put.setURI(getUri(name)); } |