Class URLInputSource.Builder

  • Enclosing class:
    URLInputSource

    public static class URLInputSource.Builder
    extends Object
    Builder class for an URLInputSource.
    • Constructor Detail

      • Builder

        public Builder​(String url)
        Parameters:
        url - Remote URL resource.
    • Method Detail

      • withToken

        public URLInputSource.Builder withToken​(String token)
        Parameters:
        token - Token for remote access requiring an authentication Token.
        Returns:
        An instance of the builder.
      • withCredentials

        public URLInputSource.Builder withCredentials​(String username,
                                                      String password)
        Parameters:
        username - Username for remote authentication.
        password - Password for remote authentication.
        Returns:
        An instance of the builder.
      • withLocalFilename

        public URLInputSource.Builder withLocalFilename​(String filename)
        Parameters:
        filename - Filename to give to the file.
        Returns:
        An instance of the builder.