diff options
Diffstat (limited to 'service/src/main')
-rw-r--r-- | service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java index e69b5b7..e9c00f8 100644 --- a/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java +++ b/service/src/main/java/org/onap/vfc/nfvo/multivimproxy/service/rest/ProxyRoa.java @@ -95,7 +95,8 @@ public class ProxyRoa { String result = rest.getResponseContent(); if(null != result) { JSONObject ret = JSONObject.fromObject(result); - JSONArray catalog = ret.getJSONArray("catalog"); + JSONObject token = ret.getJSONObject("token"); + JSONArray catalog = token.getJSONArray("catalog"); for(int i = 0; i < catalog.size(); i++) { JSONArray endpoints = catalog.getJSONObject(i).getJSONArray("endpoints"); @@ -147,7 +148,7 @@ public class ProxyRoa { @GET @Path("{var:.*}") - public String porxyGet(@Context HttpServletRequest context, @Context HttpServletResponse rsp) { + public String proxyGet(@Context HttpServletRequest context, @Context HttpServletResponse rsp) { // transfer to MultiVim RestfulParametes restfulParametes = new RestfulParametes(); @@ -164,7 +165,7 @@ public class ProxyRoa { @PUT @Path("{var:.*}") - public String porxyPut(@Context HttpServletRequest context, @Context HttpServletResponse rsp) { + public String proxyPut(@Context HttpServletRequest context, @Context HttpServletResponse rsp) { JSONObject object = RequestUtil.getJsonRequestBody(context); if(null == object) { LOGGER.error("function=proxyPost; msg=PUT error, because porxyPut is null."); @@ -188,7 +189,7 @@ public class ProxyRoa { @DELETE @Path("{var:.*}") - public String porxyDelete(@Context HttpServletRequest context, @Context HttpServletResponse rsp) { + public String proxyDelete(@Context HttpServletRequest context, @Context HttpServletResponse rsp) { // transfer to MultiVim RestfulParametes restfulParametes = new RestfulParametes(); |