java.lang.Object
ch.tocco.nice2.optional.address.impl.rest.services.HttpRequest

public class HttpRequest extends Object
Makes an HTTP Get request to the url. Converts the message response body to given bean class.
  • 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

      public <B, T> T post(String url, com.google.common.collect.Multimap<String,String> queryParams, org.glassfish.jersey.client.authentication.HttpAuthenticationFeature auth, @Nullable String providerAuthToken, B body, Class<T> beanClass)