Moved API
This commit is contained in:
parent
bceb4acd74
commit
3686d4ed8a
|
@ -236,7 +236,7 @@ public abstract class CKAN {
|
|||
|
||||
protected GXHTTPStringRequest getGXHTTPStringRequest(String path, boolean post)
|
||||
throws UnsupportedEncodingException {
|
||||
String catalogueURL = CatalogueConfigurationFactory.getInstance().getCkanURL();
|
||||
String catalogueURL = CKANUtility.getCkanURL();
|
||||
|
||||
GXHTTPStringRequest gxhttpStringRequest = HTTPUtility.createGXHTTPStringRequest(catalogueURL, path, post);
|
||||
gxhttpStringRequest.isExternalCall(true);
|
||||
|
|
|
@ -9,6 +9,14 @@ import org.gcube.gcat.configuration.CatalogueConfigurationFactory;
|
|||
*/
|
||||
public class CKANUtility {
|
||||
|
||||
public static String getCkanURL() {
|
||||
try {
|
||||
return CatalogueConfigurationFactory.getInstance().getCkanURL();
|
||||
} catch(Exception e) {
|
||||
throw new InternalServerErrorException(e);
|
||||
}
|
||||
}
|
||||
|
||||
public static String getSysAdminAPI() {
|
||||
try {
|
||||
return CatalogueConfigurationFactory.getInstance().getSysAdminToken();
|
||||
|
|
Loading…
Reference in New Issue