Interface CommandLineArguments

    • Method Detail

      • 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
      • getBasicAuthHeader

        @Nullable
        @NotEmpty
        default String getBasicAuthHeader()
        Builds the HTTP-Basic value to be used in the Authorization -header, containing username and password.
        Returns:
        The value to be used in the Authorization -header, or null if username or password didn't have a value.
        Since:
        4.2.0
      • getMethod

        @Nullable
        @NotEmpty
        default String getMethod()
        Value of method parameter.
        Returns:
        HTTP method
        Since:
        4.2.0