Package com.luciad.net.http
Class HttpRequestOptions.Builder
java.lang.Object
com.luciad.net.http.HttpRequestOptions.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
HttpRequestOptions
Builder
for the HttpRequestOptions
class.
Instances of HttpRequestOptions.Builder
are created by calling HttpRequestOptions#newBuilder
.
- Since:
- 2023.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns anHttpRequestOptions
, based on the properties set on this builder.void
close()
protected void
finalize()
header
(HttpHeader header) Sets the given http header to the set of headers for this options.Sets the given name value pair to the set of headers for this options.queryParameter
(UriQueryParameter queryParameter) Sets the given query parameter to the set of query parameters for this options.queryParameter
(String name, String value) Sets the given name value pair to the set of query parameters for this options.
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
build
Returns anHttpRequestOptions
, based on the properties set on this builder.- Returns:
- an
HttpRequestOptions
, based on the properties set on this builder.
-
header
Sets the given name value pair to the set of headers for this options.- Parameters:
name
- header namevalue
- header value- Returns:
- this builder.
-
header
Sets the given http header to the set of headers for this options.- Parameters:
header
- anHttpHeader
.- Returns:
- this builder.
-
queryParameter
@NotNull public HttpRequestOptions.Builder queryParameter(@NotNull String name, @NotNull String value) Sets the given name value pair to the set of query parameters for this options.- Parameters:
name
- query parameter name.value
- query parameter value.- Returns:
- this builder.
-
queryParameter
@NotNull public HttpRequestOptions.Builder queryParameter(@NotNull UriQueryParameter queryParameter) Sets the given query parameter to the set of query parameters for this options.- Parameters:
queryParameter
- anUriQueryParameter
.- Returns:
- this builder.
-