Class HttpUriRequestBuilder

java.lang.Object
com.inductiveautomation.perspective.gateway.binding.http.HttpUriRequestBuilder

public class HttpUriRequestBuilder extends Object
Param class that contains everything needed to execute an HttpBinding's value execution in a hashable way suitable for use as a key in ValueCache
  • Field Details

    • areCookiesEnabled

      public final boolean areCookiesEnabled
    • connectTimeout

      public final int connectTimeout
    • socketTimeout

      public final int socketTimeout
  • Method Details

    • buildRequest

      public org.apache.hc.core5.http.ClassicHttpRequest buildRequest() throws HttpRequestNotValidException
      Builds the request for this binding.

      Note the returned request does not implement Configurable, so a per-request RequestConfig cannot be attached to it. Timeouts for this binding travel on the HttpClientContext instead -- see HttpClientUtils#createHttpClientContext.

      Throws:
      HttpRequestNotValidException
    • getHttpClientContext

      public org.apache.hc.client5.http.protocol.HttpClientContext getHttpClientContext()
    • getHttpClient

      public @NonNull org.apache.hc.client5.http.classic.HttpClient getHttpClient()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object