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

21 lines
638 B
Java
Raw Normal View History

2023-02-22 14:30:13 +01:00
package org.gcube.common.http;
2023-02-22 10:52:47 +01:00
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;
}
}