aboutsummaryrefslogtreecommitdiffstats
path: root/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/utils/HttpUtils.java
diff options
context:
space:
mode:
authorTony Hansen <tony@att.com>2018-09-11 21:08:32 +0000
committerGerrit Code Review <gerrit@onap.org>2018-09-11 21:08:32 +0000
commit3cc41a9deb1aa19961670c5bd3a8cbad4d362d3b (patch)
tree418fc5ff93c6a21e1f154c525a125b637edd218b /prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/utils/HttpUtils.java
parentc055a50794e3933df9910514a58e4ff37ce19607 (diff)
parent4a1457c84c5f3a68ccdfb3e348996e14ccea89e8 (diff)
Merge "PRH:security vulnerabilities fix"
Diffstat (limited to 'prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/utils/HttpUtils.java')
-rw-r--r--prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/utils/HttpUtils.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/utils/HttpUtils.java b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/utils/HttpUtils.java
index e0264eb3..89d9c4fd 100644
--- a/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/utils/HttpUtils.java
+++ b/prh-commons/src/main/java/org/onap/dcaegen2/services/prh/model/utils/HttpUtils.java
@@ -20,14 +20,14 @@
package org.onap.dcaegen2.services.prh.model.utils;
-import org.apache.http.HttpStatus;
+import org.springframework.http.HttpStatus;
-public final class HttpUtils implements HttpStatus {
+public final class HttpUtils {
private HttpUtils() {
}
public static boolean isSuccessfulResponseCode(Integer statusCode) {
- return statusCode >= 200 && statusCode < 300;
+ return statusCode >= HttpStatus.OK.value() && statusCode < HttpStatus.MULTIPLE_CHOICES.value();
}
}