summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjin xin <j00101220@huawei.com>2016-10-15 09:37:30 +0000
committerGerrit Code Review <gerrit@open-o.org>2016-10-15 09:37:30 +0000
commitc269b4a41920f11ae4c1983c745b410de0fdefcb (patch)
tree408b9316036c600a826db224fc8395e646c97cca
parent044aaaa01c29c34b18c2370e81a8e5b6252782dd (diff)
parent3c9a168c22cf24c0a400374acc16348aafbcb4bd (diff)
Merge "Issue ID :GSO-21"
-rw-r--r--servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/roa/impl/ServiceGatewayRoaModuleImpl.java3
-rw-r--r--servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/service/impl/ServiceGatewayImpl.java5
-rw-r--r--servicegateway/service/src/main/webapp/WEB-INF/web.xml4
3 files changed, 10 insertions, 2 deletions
diff --git a/servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/roa/impl/ServiceGatewayRoaModuleImpl.java b/servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/roa/impl/ServiceGatewayRoaModuleImpl.java
index 3c47c657..7d2e0721 100644
--- a/servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/roa/impl/ServiceGatewayRoaModuleImpl.java
+++ b/servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/roa/impl/ServiceGatewayRoaModuleImpl.java
@@ -70,6 +70,7 @@ public class ServiceGatewayRoaModuleImpl implements IServiceGatewayRoaModule {
// 1. Check validation
String reqContent = RestUtils.getRequestBody(servletReq);
ValidateUtil.assertStringNotNull(reqContent);
+ LOGGER.info("Received a request form the NBI the reqContent is :"+ reqContent);
// 2. Create service
serviceId = serviceGateway.createService(reqContent, servletReq);
@@ -133,6 +134,6 @@ public class ServiceGatewayRoaModuleImpl implements IServiceGatewayRoaModule {
public void setServiceGateway(IServiceGateway serviceGateway)
{
this.serviceGateway = serviceGateway;
- }
+ }
}
diff --git a/servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/service/impl/ServiceGatewayImpl.java b/servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/service/impl/ServiceGatewayImpl.java
index 0a70850c..c3dee4a3 100644
--- a/servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/service/impl/ServiceGatewayImpl.java
+++ b/servicegateway/service/src/main/java/org/openo/gso/gui/servicegateway/service/impl/ServiceGatewayImpl.java
@@ -84,12 +84,15 @@ public class ServiceGatewayImpl implements IServiceGateway {
// call the restful
String id = null;
try {
+ LOGGER.info("Send the cretation RESTful request to orchestrator.The Body is"+ requestBody.toString());
RestfulResponse restfulRsp = RestfulFactory.getRestInstance("http").post(gatewayUri,
getRestfulParameters(JsonUtil.marshal(requestBody)));
+ LOGGER.info("Receive the cretation RESTful response from orchestrator.The status is:"+restfulRsp.getStatus()+" the content is:"+
+ restfulRsp.getResponseContent());
if (null != restfulRsp) {
// Record the result of registration
// (201:success;415:Invalid Parameter;500:Internal Server Error)
- LOGGER.info("restful call result:", restfulRsp.getStatus());
+ LOGGER.info("restful call result:"+ restfulRsp.getStatus());
id = restfulRsp.getRespHeaderStr(Constant.SERVICE_ID);
id = (null == id) ? restfulRsp.getRespHeaderStr(Constant.NS_INSTANCE_ID) : id;
id = (null == id) ? restfulRsp.getRespHeaderStr(Constant.JOB_ID) : id;
diff --git a/servicegateway/service/src/main/webapp/WEB-INF/web.xml b/servicegateway/service/src/main/webapp/WEB-INF/web.xml
index 59f35929..174ba383 100644
--- a/servicegateway/service/src/main/webapp/WEB-INF/web.xml
+++ b/servicegateway/service/src/main/webapp/WEB-INF/web.xml
@@ -23,6 +23,10 @@
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
+ <init-param>
+ <param-name>hide-service-list-page</param-name>
+ <param-value>true</param-value>
+ </init-param>
</servlet>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>