diff options
author | Rich Tabedzki <richard.tabedzki@att.com> | 2017-04-25 10:48:58 +0000 |
---|---|---|
committer | Rich Tabedzki <richard.tabedzki@att.com> | 2017-04-25 10:51:18 +0000 |
commit | a632cf9550fb4ceb1e1f357d307dfbb94b87f4f1 (patch) | |
tree | dd0621f3450fea07b72594177c3e3bede9998f60 /aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/AAIRequest.java | |
parent | 21dee1d3c71ff2b55b663bb1f381b84da3aef370 (diff) |
[SDNC-7] summary
Implemented formatted-query feature
Change-Id: Idb8c0d1c5703967d7b165fca643cbfd183563cfb
Signed-off-by: Rich Tabedzki <richard.tabedzki@att.com>
Diffstat (limited to 'aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/AAIRequest.java')
-rw-r--r-- | aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/AAIRequest.java | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/AAIRequest.java b/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/AAIRequest.java index 6247e2d..a237d84 100644 --- a/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/AAIRequest.java +++ b/aai-service/provider/src/main/java/org/openecomp/sdnc/sli/aai/AAIRequest.java @@ -3,7 +3,7 @@ * openECOMP : SDN-C * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights - * reserved. + * reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -113,6 +113,8 @@ public abstract class AAIRequest { return new NamedQueryRequest(); case "nodes-query": return new NodesQueryRequest(); + case "formatted-query": + return new FormattedQueryRequest(); case "linterface": return new LInterfaceRequest(LInterfaceRequest.TYPE.L2_BRIDGE_SBG); case "l2-bridge-sbg": @@ -268,7 +270,7 @@ public abstract class AAIRequest { } - protected String getRequestPath() { + protected String getRequestPath() throws MalformedURLException { Set<String> uniqueResources = extractUniqueResourceSetFromKeys(requestProperties.stringPropertyNames()); BitSet bitset = new BitSet(); for(String key : uniqueResources) { @@ -281,7 +283,12 @@ public abstract class AAIRequest { } } } - return bitsetPaths.get(bitset); + + String path = bitsetPaths.get(bitset); + if(path == null) { + throw new MalformedURLException("PATH not found for key string containing valies :" +requestProperties.toString()); + } + return path; } public abstract URL getRequestQueryUrl(String method) throws UnsupportedEncodingException, MalformedURLException; @@ -408,4 +415,7 @@ public abstract class AAIRequest { return query_pairs; } + protected boolean expectsDataFromPUTRequest() { + return false; + } } |