Class HttpUriRequestBuilder
java.lang.Object
com.inductiveautomation.perspective.gateway.binding.http.HttpUriRequestBuilder
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 Summary
FieldsModifier and TypeFieldDescriptionfinal booleanfinal intfinal int -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.core5.http.ClassicHttpRequestBuilds the request for this binding.boolean@NonNull org.apache.hc.client5.http.classic.HttpClientorg.apache.hc.client5.http.protocol.HttpClientContextinthashCode()
-
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 HttpRequestNotValidExceptionBuilds the request for this binding.Note the returned request does not implement
Configurable, so a per-requestRequestConfigcannot be attached to it. Timeouts for this binding travel on theHttpClientContextinstead -- seeHttpClientUtils#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
-
hashCode
-