Class NetSubmitter
java.lang.Object
io.github.projectunified.faststats.net.NetSubmitter
- All Implemented Interfaces:
Submitter
Implementation of
Submitter that uses HttpURLConnection
to submit GZIP-compressed telemetry payloads.-
Nested Class Summary
Nested classes/interfaces inherited from interface Submitter
Submitter.Response -
Field Summary
Fields inherited from interface Submitter
DEFAULT_BASE_URL -
Constructor Summary
ConstructorsConstructorDescriptionNetSubmitter(String token) Constructs a newNetSubmitterwith default settings.NetSubmitter(String baseUrl, String token, String userAgent) Constructs a newNetSubmitter. -
Method Summary
Modifier and TypeMethodDescriptionExecutes the HTTP request and returns the response context.
-
Constructor Details
-
NetSubmitter
Constructs a newNetSubmitterwith default settings.- Parameters:
token- the authorization token (bearer)
-
NetSubmitter
Constructs a newNetSubmitter.- Parameters:
baseUrl- the base URLtoken- the authorization token (bearer)userAgent- the user agent header value
-
-
Method Details
-
execute
Description copied from interface:SubmitterExecutes the HTTP request and returns the response context.
-