Revision 55561
Added by Alessia Bardi almost 5 years ago
CatalogueAPIResponse.java | ||
---|---|---|
10 | 10 |
* Created by Alessia Bardi on 08/03/2018. |
11 | 11 |
* |
12 | 12 |
* @author Alessia Bardi |
13 |
* TODO: reimplement for new RESTful API |
|
13 | 14 |
*/ |
14 | 15 |
public class CatalogueAPIResponse { |
15 | 16 |
|
... | ... | |
24 | 25 |
return response.get("success").asBoolean(); |
25 | 26 |
} |
26 | 27 |
|
28 |
|
|
27 | 29 |
public ParthenosRegistryResource getParthenosRegistryResource() throws IOException { |
28 | 30 |
if(!hasParthenosRegistryResource()) return null; |
29 | 31 |
else{ |
... | ... | |
37 | 39 |
return !result.isMissingNode(); |
38 | 40 |
} |
39 | 41 |
|
42 |
|
|
40 | 43 |
public String getErrorMessage(){ |
41 | 44 |
if(isSuccess()) return ""; |
42 | 45 |
//TODO: tell d4science guys that error messages sometimes are in error.name, sometimes in message |
Also available in: Unified diff
Removed dep to gcube registry and ignore integration tests