Class HttpClientSubmitter
java.lang.Object
io.github.projectunified.faststats.httpclient.HttpClientSubmitter
- All Implemented Interfaces:
Submitter
-
Field Summary
Fields inherited from interface Submitter
DEFAULT_URL -
Constructor Summary
ConstructorsConstructorDescriptionHttpClientSubmitter(String token) Constructs a newHttpClientSubmitterwith the default metrics URI (https://metrics.faststats.dev/v1/collect), standardHttpClient, and default user agent.HttpClientSubmitter(java.net.http.HttpClient httpClient, URI uri, String token, String userAgent) Constructs a newHttpClientSubmitter.HttpClientSubmitter(URI uri, String token) Constructs a newHttpClientSubmitterwith standardHttpClientand default user agent. -
Method Summary
-
Constructor Details
-
HttpClientSubmitter
Constructs a newHttpClientSubmitterwith the default metrics URI (https://metrics.faststats.dev/v1/collect), standardHttpClient, and default user agent.- Parameters:
token- the authorization token (bearer)
-
HttpClientSubmitter
Constructs a newHttpClientSubmitterwith standardHttpClientand default user agent.- Parameters:
uri- the target metrics URItoken- the authorization token (bearer)
-
HttpClientSubmitter
public HttpClientSubmitter(java.net.http.HttpClient httpClient, URI uri, String token, String userAgent) Constructs a newHttpClientSubmitter.- Parameters:
httpClient- the HttpClient instance to useuri- the target metrics URItoken- the authorization token (bearer)userAgent- the user agent header value
-
-
Method Details
-
execute
-