public class UpdateCheckerHttpClient extends Object
UsagePropertyProvider
to determine the URL to send the data to.Constructor and Description |
---|
UpdateCheckerHttpClient(UsagePropertyProvider userProperties)
Creates a new
UpdateCheckerHttpClient with the given UsagePropertyProvider . |
Modifier and Type | Method and Description |
---|---|
Optional<UpdateCheckResponse> |
sendRequest(UpdateCheckRequest updateCheckRequest,
boolean firstRequest)
Sends a usage request to the AxonIQ servers.
|
public UpdateCheckerHttpClient(UsagePropertyProvider userProperties)
UpdateCheckerHttpClient
with the given UsagePropertyProvider
. The client will use
the properties to determine the URL to send the usage data to.userProperties
- The UsagePropertyProvider
to use for retrieving the URL and other properties.public Optional<UpdateCheckResponse> sendRequest(UpdateCheckRequest updateCheckRequest, boolean firstRequest)
firstRequest
is true, it will send a POST request,
otherwise it will send a PUT request.updateCheckRequest
- The UpdateCheckRequest
to send.firstRequest
- Whether this is the first request or not.Optional
containing the UpdateCheckResponse
if the request was successful, or empty if
it failed.Copyright © 2010–2025. All rights reserved.