Class ProxyAddressEnumerator.Builder<B extends ProxyAddressEnumerator.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
BuilderInterface
Enclosing class:
ProxyAddressEnumerator

public static class ProxyAddressEnumerator.Builder<B extends ProxyAddressEnumerator.Builder<B>> extends SocketAddressEnumerator.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public ProxyAddressEnumerator build()
      Finish building the ProxyAddressEnumerator object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to ProxyAddressEnumerator.
      Overrides:
      build in class SocketAddressEnumerator.Builder<B extends ProxyAddressEnumerator.Builder<B>>
      Returns:
      a new instance of ProxyAddressEnumerator with the properties that were set in the Builder object.
    • setConnectable

      public B setConnectable(SocketConnectable connectable)
      The connectable being enumerated.
      Parameters:
      connectable - the value for the connectable property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setDefaultPort

      public B setDefaultPort(int defaultPort)
      The default port to use if GProxyAddressEnumerator:uri does not specify one.
      Parameters:
      defaultPort - the value for the default-port property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.38
    • setProxyResolver

      public B setProxyResolver(ProxyResolver proxyResolver)
      The proxy resolver to use.
      Parameters:
      proxyResolver - the value for the proxy-resolver property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.36
    • setUri

      public B setUri(String uri)
      The destination URI. Use none:// for a generic socket.
      Parameters:
      uri - the value for the uri property
      Returns:
      the Builder instance is returned, to allow method chaining