Package org.gnome.gio
Class ProxyAddressEnumerator.Builder<B extends ProxyAddressEnumerator.Builder<B>>
java.lang.Object
org.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theProxyAddressEnumeratorobject.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
onNotifyMethods inherited from class org.javagi.gobject.Builder
addBuilderProperty, connect, connect, connectSignals, getArena, getNames, getValues
-
Constructor Details
-
Builder
protected Builder()Default constructor for aBuilderobject.
-
-
Method Details
-
build
Finish building theProxyAddressEnumeratorobject. 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:
buildin classSocketAddressEnumerator.Builder<B extends ProxyAddressEnumerator.Builder<B>>- Returns:
- a new instance of
ProxyAddressEnumeratorwith the properties that were set in the Builder object.
-
setConnectable
The connectable being enumerated.- Parameters:
connectable- the value for theconnectableproperty- Returns:
- the
Builderinstance is returned, to allow method chaining
-
setDefaultPort
The default port to use ifGProxyAddressEnumerator:uri does not specify one.- Parameters:
defaultPort- the value for thedefault-portproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.38
-
setProxyResolver
The proxy resolver to use.- Parameters:
proxyResolver- the value for theproxy-resolverproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.36
-
setUri
-