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