Class HttpRequest
java.lang.Object
ch.tocco.nice2.optional.address.impl.rest.services.HttpRequest
Makes an HTTP Get request to the url. Converts the message response body to given bean class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
get
(String url, com.google.common.collect.Multimap<String, String> queryParams, org.glassfish.jersey.client.authentication.HttpAuthenticationFeature auth, String providerAuthToken, Class<T> beanClass) <B,
T> T post
(String url, com.google.common.collect.Multimap<String, String> queryParams, org.glassfish.jersey.client.authentication.HttpAuthenticationFeature auth, String providerAuthToken, B body, Class<T> beanClass)
-
Constructor Details
-
HttpRequest
public HttpRequest()
-
-
Method Details
-
get
public <T> T get(String url, com.google.common.collect.Multimap<String, String> queryParams, org.glassfish.jersey.client.authentication.HttpAuthenticationFeature auth, @Nullable String providerAuthToken, Class<T> beanClass) throws jakarta.ws.rs.WebApplicationException- Throws:
jakarta.ws.rs.WebApplicationException
-
post
-