aboutsummaryrefslogtreecommitdiffstats
path: root/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/PhysicalLinkRequest.java
diff options
context:
space:
mode:
authorRich Tabedzki <richard.tabedzki@att.com>2017-04-05 13:15:15 +0000
committerRich Tabedzki <richard.tabedzki@att.com>2017-04-05 13:15:52 +0000
commitf2f129f56c057854517394cc5680b02418fece7d (patch)
tree43632d50bff51aa214713357b313a875e3e6d5c5 /aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/PhysicalLinkRequest.java
parentc11f9ffaa0d9f43371f6f85a20cd1f09c6595dfb (diff)
[SDNC-5] summary
Synchronized source code with 17.07 after cleaning up deprecated code Change-Id: Ieabd58d25bb405ad15ad255e1cf40797e91d937f Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
Diffstat (limited to 'aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/PhysicalLinkRequest.java')
-rw-r--r--aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/PhysicalLinkRequest.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/PhysicalLinkRequest.java b/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/PhysicalLinkRequest.java
index 7aa0f1b..b494471 100644
--- a/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/PhysicalLinkRequest.java
+++ b/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/PhysicalLinkRequest.java
@@ -30,17 +30,17 @@ import org.openecomp.sdnc.sli.aai.data.AAIDatum;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
-import org.openecomp.aai.inventory.v8.PhysicalLink;
+import org.openecomp.aai.inventory.v10.PhysicalLink;
public class PhysicalLinkRequest extends AAIRequest {
// physical link
public static final String PHYSICAL_LINK_PATH = "org.openecomp.sdnc.sli.aai.path.physical.link";
public static final String PHYSICAL_LINK_QUERY_PATH = "org.openecomp.sdnc.sli.aai.path.physical.link.query";
-
+
private final String physical_link_path;
private final String physical_link_query_path;
-
+
public static final String LINK_NAME = "link-name";
public static final String PHYSICAL_LINK_NAME = "physical-link.link-name";
@@ -54,12 +54,12 @@ public class PhysicalLinkRequest extends AAIRequest {
public URL getRequestQueryUrl(String method) throws UnsupportedEncodingException, MalformedURLException {
return this.getRequestUrl(method, null);
}
-
+
@Override
public URL getRequestUrl(String method, String resourceVersion) throws UnsupportedEncodingException, MalformedURLException {
String request_url = target_uri+physical_link_path;
-
+
String linkName = null;
if(requestProperties.containsKey(LINK_NAME)) {
linkName = requestProperties.getProperty(LINK_NAME);
@@ -69,7 +69,7 @@ public class PhysicalLinkRequest extends AAIRequest {
linkName = requestProperties.getProperty(PHYSICAL_LINK_NAME);
}
-
+
String encoded_vnf = encodeQuery(linkName);
request_url = request_url.replace("{link-name}", encoded_vnf) ;
@@ -80,7 +80,7 @@ public class PhysicalLinkRequest extends AAIRequest {
aaiService.LOGwriteFirstTrace(method, http_req_url.toString());
aaiService.LOGwriteDateTrace("link-name", linkName);
-
+
return http_req_url;
}