Package org.gnome.gio
Class ProxyAddressEnumerator.Builder<B extends ProxyAddressEnumerator.Builder<B>>
java.lang.Object
io.github.jwharm.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.SocketAddressEnumerator.Builder<B>
org.gnome.gio.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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theProxyAddressEnumerator
object.setConnectable
(SocketConnectable connectable) The connectable being enumerated.setDefaultPort
(int defaultPort) The default port to use ifGProxyAddressEnumerator
:uri does not specify one.setProxyResolver
(ProxyResolver proxyResolver) The proxy resolver to use.The destination URI.Methods inherited from class org.gnome.gobject.GObject.Builder
onNotify
Methods inherited from class io.github.jwharm.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilder
object.
-
-
Method Details
-
build
Finish building theProxyAddressEnumerator
object. This will callGObject.withProperties(org.gnome.glib.Type, java.lang.String[], org.gnome.gobject.Value[])
to create a new GObject instance, which is then cast toProxyAddressEnumerator
.- Overrides:
build
in classSocketAddressEnumerator.Builder<B extends ProxyAddressEnumerator.Builder<B>>
- Returns:
- a new instance of
ProxyAddressEnumerator
with the properties that were set in the Builder object.
-
setConnectable
The connectable being enumerated.- Parameters:
connectable
- the value for theconnectable
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDefaultPort
The default port to use ifGProxyAddressEnumerator
:uri does not specify one.- Parameters:
defaultPort
- the value for thedefault-port
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setProxyResolver
The proxy resolver to use.- Parameters:
proxyResolver
- the value for theproxy-resolver
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setUri
-