diff options
Diffstat (limited to 'ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/rest/RestWebServiceClient.java')
-rw-r--r-- | ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/rest/RestWebServiceClient.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/rest/RestWebServiceClient.java b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/rest/RestWebServiceClient.java index 7121bd8c..a5608746 100644 --- a/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/rest/RestWebServiceClient.java +++ b/ecomp-sdk/epsdk-fw/src/main/java/org/onap/portalsdk/core/onboarding/rest/RestWebServiceClient.java @@ -215,6 +215,7 @@ public class RestWebServiceClient { } con.setRequestProperty("user-agent", appName); con.setRequestProperty("X-ECOMP-RequestID", requestId); + logger.debug("Post: X-ECOMP-RequestID: "+ requestId); con.setRequestProperty("username", appUserName); con.setRequestProperty("password", appPassword); if (useBasicAuth) { @@ -266,6 +267,7 @@ public class RestWebServiceClient { public String postPortalContent(String restPath, String userId, String appName, String requestId, String appUserName, String appPassword, String contentType, String content, boolean isBasicAuth) throws IOException { + logger.debug("postPortalContent: requestBody for "+restPath +"is: "+ content ); String restURL = PortalApiProperties.getProperty(PortalApiConstants.ECOMP_REST_URL); if (restURL == null) { @@ -355,6 +357,7 @@ public class RestWebServiceClient { con.setRequestProperty("user-agent", appName); con.setRequestProperty("X-ECOMP-RequestID", requestId); con.setRequestProperty("Content-Type", contentType); + logger.debug("Post: X-ECOMP-RequestID: "+ requestId); if (isBasicAuth) { String encoding = Base64.getEncoder().encodeToString((appUserName + ":" + appPassword).getBytes()); con.setRequestProperty("Authorization", "Basic " + encoding); |