diff options
author | 2019-04-09 14:54:24 +0000 | |
---|---|---|
committer | 2019-04-09 14:54:24 +0000 | |
commit | cb1b12599814c47c14f8fff3a26e55b5f43c7f59 (patch) | |
tree | 76f953fc9cf3a2ad38b2fbcbc539d608792b8711 /src/main/java | |
parent | 0eaa7c1e7fa494dce7df7c8e85109c6dec5b561f (diff) | |
parent | 6a48f4d88b6972dd7f6c18f690fd29e47dda1e17 (diff) |
Merge "Match decompress argument of DR API"
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/onap/dmaap/dbcapi/model/DR_Sub.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/main/java/org/onap/dmaap/dbcapi/model/DR_Sub.java b/src/main/java/org/onap/dmaap/dbcapi/model/DR_Sub.java index 8ac0880..90da956 100644 --- a/src/main/java/org/onap/dmaap/dbcapi/model/DR_Sub.java +++ b/src/main/java/org/onap/dmaap/dbcapi/model/DR_Sub.java @@ -45,7 +45,7 @@ public class DR_Sub extends DmaapObject { private boolean guaranteedDelivery; private boolean guaranteedSequence; private boolean privilegedSubscriber; - private boolean decompressData; + private boolean decompress; // NOTE: the following fields are optional in the API but not stored in the DB @@ -116,9 +116,9 @@ public class DR_Sub extends DmaapObject { this.setPrivilegedSubscriber(false); } try { - this.setDecompressData((boolean) jsonObj.get("decompressData")); + this.setDecompress((boolean) jsonObj.get("decompress")); } catch( NullPointerException npe ) { - this.setDecompressData(false); + this.setDecompress(false); } JSONObject del = (JSONObject) jsonObj.get("delivery"); @@ -239,12 +239,12 @@ public class DR_Sub extends DmaapObject { this.privilegedSubscriber = privilegedSubscriber; } - public boolean isDecompressData() { - return decompressData; + public boolean isDecompress() { + return decompress; } - public void setDecompressData(boolean decompressData) { - this.decompressData = decompressData; + public void setDecompress(boolean decompressData) { + this.decompress = decompressData; } public String getFeedName() { @@ -286,7 +286,7 @@ public class DR_Sub extends DmaapObject { ,"0" ,"true" ,this.isPrivilegedSubscriber() - ,this.isDecompressData() + ,this.isDecompress() ); logger.info( postJSON ); |