diff options
Diffstat (limited to 'esr-mgr')
-rw-r--r-- | esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/AaiCommon.java | 6 | ||||
-rw-r--r-- | esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ThirdpartySdncRegisterProvider.java | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/AaiCommon.java b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/AaiCommon.java index d28d5e5..15820c5 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/AaiCommon.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/AaiCommon.java @@ -16,7 +16,11 @@ package org.onap.aai.esr.externalservice.aai; public class AaiCommon { - + + private AaiCommon() { + + } + private static String AAI_AUTHENTICATION_USER = "AAI"; private static String AAI_AUTHENTICATION_PAASWORD = "AAI"; diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ThirdpartySdncRegisterProvider.java b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ThirdpartySdncRegisterProvider.java index d4c4bc4..a9b89a5 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ThirdpartySdncRegisterProvider.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/externalservice/aai/ThirdpartySdncRegisterProvider.java @@ -46,7 +46,7 @@ public class ThirdpartySdncRegisterProvider implements MessageBodyWriter<EsrThir @Override public void writeTo(EsrThirdpartySdncDetail t, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) - throws IOException, WebApplicationException { + throws IOException{ String json = new Gson().toJson(t, EsrThirdpartySdncDetail.class); logger.info("the param to register VIM input is:" + json); entityStream.write(json.getBytes("UTF-8")); |