public class UpdateCheckResponse extends Object
Constructor and Description |
---|
UpdateCheckResponse(int checkInterval,
List<ArtifactAvailableUpgrade> upgrades,
List<DetectedVulnerability> vulnerabilities)
Constructs an
UpdateCheckResponse with the given checkInterval , upgrades , and
vulnerabilities . |
Modifier and Type | Method and Description |
---|---|
int |
checkInterval()
Returns the check interval of this update check response.
|
boolean |
equals(Object o) |
static UpdateCheckResponse |
fromRequest(String body)
Parses the response body from the anonymous usage reporter into a
UsageResponse object. |
int |
hashCode() |
String |
toString() |
List<ArtifactAvailableUpgrade> |
upgrades()
Returns the collection of
upgrades of this update check response. |
List<DetectedVulnerability> |
vulnerabilities()
Returns the collection of
vulnerabilities of this update check response. |
public UpdateCheckResponse(int checkInterval, List<ArtifactAvailableUpgrade> upgrades, List<DetectedVulnerability> vulnerabilities)
UpdateCheckResponse
with the given checkInterval
, upgrades
, and
vulnerabilities
.checkInterval
- The interval in seconds at which the usage data should be checked.upgrades
- A list of found version upgrades, each containing details about the artifact and its
latest version.vulnerabilities
- A list of found vulnerabilities, each containing details about the artifact, its severity,
fix version, and a URL for more information.public int checkInterval()
public List<ArtifactAvailableUpgrade> upgrades()
upgrades
of this update check response.upgrades
of this update check response.public List<DetectedVulnerability> vulnerabilities()
vulnerabilities
of this update check response.vulnerabilities
of this update check response.public static UpdateCheckResponse fromRequest(String body)
UsageResponse
object. The body is
expected to be in a specific format where each line contains a key-value pair. The expected keys are:
An example of the expected format:
cd=86400 vul=org.axonframework:axon-serialization:1.0.0:HIGH:"https://example.com/vulnerability" upd=org.axonframework:axon-messaging:5.0.1
body
- The response body as a string.UsageResponse
object containing the parsed data.Copyright © 2010–2025. All rights reserved.