Class ServerConfig
java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.client.common.ServerConfig
This class is used to represent the
address and optionally any authentication information necessary
to connect to an external server resource.-
Constructor Summary
ConstructorsConstructorDescriptionServerConfig(URI address) TheURIrepresenting the address is required.ServerConfig(URI address, Authentication authentication) TheURIrepresenting the address is required. -
Method Summary
-
Constructor Details
-
ServerConfig
TheURIrepresenting the address is required.- Parameters:
address- the URI of the external resource.- Throws:
URISyntaxException- ifaddressis not valid.NullPointerException- ifaddressnot provided.
-
ServerConfig
TheURIrepresenting the address is required.- Parameters:
address- the URI of the external resource.authentication- the authentication details.- Throws:
NullPointerException- ifaddressnot provided.
-
-
Method Details
-
getAddress
- Returns:
- the URI of the external resource.
-
getAuthentication
- Returns:
- the authentication details.
-