Interface CommandLineArguments

All Known Implementing Classes:
AbstractCommandLineArguments, MetadataQueryArguments, ReloadMetadataArguments, ReloadServiceArguments, ResolverTestArguments, StatusArguments

public interface CommandLineArguments
Interface for JCommander command line argument handling for an HTTP-based remote service call.
  • Method Summary

    Modifier and Type Method Description
    URL buildURL()
    Compute the full URL to connect to.
    boolean isUsage()
    Should command usage be displayed?
    void validate()
    Validate the parameter set.
  • Method Details

    • isUsage

      boolean isUsage()
      Should command usage be displayed?
      Returns:
      true iff this is a help request
    • validate

      void validate()
      Validate the parameter set.
      Throws:
      IllegalArgumentException - if the parameters are invalid
    • buildURL

      @Nonnull URL buildURL() throws MalformedURLException
      Compute the full URL to connect to.
      Returns:
      the URL to connect to
      Throws:
      MalformedURLException - if the URL constructed is invalid