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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <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)
     
    <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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 @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 @Nullable String providerAuthToken, B body, Class<T> beanClass)