public class HttpClient extends Object
| Constructor and Description |
|---|
HttpClient() |
| Modifier and Type | Method and Description |
|---|---|
static <R> R |
get(javax.ws.rs.core.GenericType<org.gcube.social_networking.socialnetworking.model.output.ResponseBean<R>> returnType,
String requestUrl)
Executes a get request
|
static <R> R |
post(javax.ws.rs.core.GenericType<org.gcube.social_networking.socialnetworking.model.output.ResponseBean<R>> returnType,
String requestUrl,
Object obj)
Executes a post request
|
static <R> R |
postFormData(javax.ws.rs.core.GenericType<org.gcube.social_networking.socialnetworking.model.output.ResponseBean<R>> returnType,
String requestUrl,
javax.ws.rs.core.Form form)
Executes a post request
|
public static <R> R get(javax.ws.rs.core.GenericType<org.gcube.social_networking.socialnetworking.model.output.ResponseBean<R>> returnType,
String requestUrl)
returnType - requestUrl - public static <R> R post(javax.ws.rs.core.GenericType<org.gcube.social_networking.socialnetworking.model.output.ResponseBean<R>> returnType,
String requestUrl,
Object obj)
returnType - requestUrl - obj - public static <R> R postFormData(javax.ws.rs.core.GenericType<org.gcube.social_networking.socialnetworking.model.output.ResponseBean<R>> returnType,
String requestUrl,
javax.ws.rs.core.Form form)
returnType - requestUrl - obj - Copyright © 2023. All rights reserved.