Class NetworkRequest.GetRequest
-
- All Implemented Interfaces:
public final class NetworkRequest.GetRequest extends NetworkRequest
Represents a GET request.
-
-
Field Summary
Fields Modifier and Type Field Description private Stringurlprivate final Map<String, String>headersprivate final TimeoutConfigtimeoutsprivate final Map<String, String>queryParamsprivate final RetryPolicyretryPolicyprivate final BooleanfollowRedirectsprivate final StringmethodType
-
Constructor Summary
Constructors Constructor Description NetworkRequest.GetRequest(String url, Map<String, String> headers, TimeoutConfig timeouts, Map<String, String> queryParams, RetryPolicy retryPolicy, Boolean followRedirects)
-
Method Summary
Modifier and Type Method Description StringgetUrl()The URL of the GET request. UnitsetUrl(String url)The URL of the GET request. Map<String, String>getHeaders()The headers of the GET request. TimeoutConfiggetTimeouts()The timeout configuration for the GET request. final Map<String, String>getQueryParams()The query parameters of the GET request. RetryPolicygetRetryPolicy()The retry policy for the GET request. BooleangetFollowRedirects()Flag indicating whether to follow redirects for the GET request. StringtoString()-
-
Constructor Detail
-
NetworkRequest.GetRequest
NetworkRequest.GetRequest(String url, Map<String, String> headers, TimeoutConfig timeouts, Map<String, String> queryParams, RetryPolicy retryPolicy, Boolean followRedirects)
-
-
Method Detail
-
getHeaders
Map<String, String> getHeaders()
The headers of the GET request.
-
getTimeouts
TimeoutConfig getTimeouts()
The timeout configuration for the GET request.
-
getQueryParams
final Map<String, String> getQueryParams()
The query parameters of the GET request.
-
getRetryPolicy
RetryPolicy getRetryPolicy()
The retry policy for the GET request.
-
getFollowRedirects
Boolean getFollowRedirects()
Flag indicating whether to follow redirects for the GET request.
-
-
-
-