Class UnixSocketAddress.Builder<B extends UnixSocketAddress.Builder<B>>

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

public static class UnixSocketAddress.Builder<B extends UnixSocketAddress.Builder<B>> extends SocketAddress.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 UnixSocketAddress build()
      Finish building the UnixSocketAddress object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to UnixSocketAddress.
      Overrides:
      build in class SocketAddress.Builder<B extends UnixSocketAddress.Builder<B>>
      Returns:
      a new instance of UnixSocketAddress with the properties that were set in the Builder object.
    • setAbstract

      @Deprecated public B setAbstract(boolean abstract_)
      Deprecated.
      Use GUnixSocketAddress:address-type, which distinguishes between zero-padded and non-zero-padded abstract addresses.
      Whether or not this is an abstract address
      Parameters:
      abstract_ - the value for the abstract property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setAddressType

      public B setAddressType(UnixSocketAddressType addressType)
      The type of Unix socket address.
      Parameters:
      addressType - the value for the address-type property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.22
    • setPath

      public B setPath(String path)
      Unix socket path.
      Parameters:
      path - the value for the path property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.22
    • setPathAsArray

      public B setPathAsArray(byte[] pathAsArray)
      Unix socket path, as a byte array.
      Parameters:
      pathAsArray - the value for the path-as-array property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      2.22