common-utility-sg3/src/main/java/org/gcube/http/GXHTTPUtility.java

21 lines
631 B
Java

package org.gcube.http;
import org.gcube.common.gxhttp.request.GXHTTPStringRequest;
/**
* @author Luca Frosini (ISTI - CNR)
*/
public class GXHTTPUtility {
public static GXHTTPStringRequest getGXHTTPStringRequest(String address) {
GXHTTPStringRequest gxHTTPStringRequest = GXHTTPStringRequest.newRequest(address);
// Secret secret = SecretManagerProvider.instance.get();
// Map<String, String> authorizationHeaders = secret.getHTTPAuthorizationHeaders();
// for(String key : authorizationHeaders.keySet()) {
// gxHTTPStringRequest.header(key, authorizationHeaders.get(key));
// }
return gxHTTPStringRequest;
}
}