java.lang.Object
org.sonatype.gradle.plugins.scan.nexus.iq.client.common.ServerConfig

public class ServerConfig extends Object
This class is used to represent the address and optionally any authentication information necessary to connect to an external server resource.
  • Constructor Details

    • ServerConfig

      public ServerConfig(URI address) throws URISyntaxException
      The URI representing the address is required.
      Parameters:
      address - the URI of the external resource.
      Throws:
      URISyntaxException - if address is not valid.
      NullPointerException - if address not provided.
    • ServerConfig

      public ServerConfig(URI address, Authentication authentication)
      The URI representing the address is required.
      Parameters:
      address - the URI of the external resource.
      authentication - the authentication details.
      Throws:
      NullPointerException - if address not provided.
  • Method Details

    • getAddress

      public URI getAddress()
      Returns:
      the URI of the external resource.
    • getAuthentication

      public Authentication getAuthentication()
      Returns:
      the authentication details.