Package io.jenkins.plugins.wiz
Class ParsedWizCliUrl
java.lang.Object
io.jenkins.plugins.wiz.ParsedWizCliUrl
Represents a validated and parsed Wiz CLI download URL with version information.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedWizCliUrl(String url, WizCliVersion version) Creates a new ParsedWizCliUrl instance. -
Method Summary
-
Constructor Details
-
ParsedWizCliUrl
Creates a new ParsedWizCliUrl instance.- Parameters:
url- the validated URL stringversion- the detected CLI version
-
-
Method Details
-
getVersion
Gets the CLI version detected from the URL.- Returns:
- the CLI version
-
getUrl
Gets the URL as a string.- Returns:
- the URL string
-
isLatest
public boolean isLatest()Checks if this URL points to the latest version of the CLI.- Returns:
- true if the URL contains "latest" in the version path, false otherwise
-
toString
Returns the URL string representation.
-