Class HttpProxy.Builder

  • Enclosing class:
    HttpProxy

    public static final class HttpProxy.Builder
    extends java.lang.Object
    Builds instances of type HttpProxy.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setHost​(java.lang.String host)
      Initializes the value for the host attribute.
      void setNonProxyHosts​(java.lang.Iterable<java.lang.String> elements)
      Adds elements to nonProxyHosts.
      void setPassword​(java.lang.String password)
      Initializes the default value for the password attribute.
      void setPassword​(java.util.Optional<java.lang.String> password)
      Initializes the value for the password attribute.
      void setPort​(int port)
      Initializes the value for the port attribute.
      void setUsername​(java.lang.String username)
      Initializes the default value for the username attribute.
      void setUsername​(java.util.Optional<java.lang.String> username)
      Initializes the value for the username attribute.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setHost

        public void setHost​(java.lang.String host)
        Initializes the value for the host attribute.
        Parameters:
        host - The value for host
      • setPort

        public void setPort​(int port)
        Initializes the value for the port attribute.
        Parameters:
        port - The value for port
      • setNonProxyHosts

        public void setNonProxyHosts​(java.lang.Iterable<java.lang.String> elements)
        Adds elements to nonProxyHosts.
        Parameters:
        elements - An iterable of nonProxyHosts elements
      • setUsername

        public void setUsername​(java.util.Optional<java.lang.String> username)
        Initializes the value for the username attribute.
        Parameters:
        username - The value for username
      • setUsername

        public void setUsername​(java.lang.String username)
        Initializes the default value for the username attribute.
        Parameters:
        username - The value for username
      • setPassword

        public void setPassword​(java.util.Optional<java.lang.String> password)
        Initializes the value for the password attribute.
        Parameters:
        password - The value for password
      • setPassword

        public void setPassword​(java.lang.String password)
        Initializes the default value for the password attribute.
        Parameters:
        password - The value for password