Package org.gnome.gio
Class ProxyAddress.Builder<B extends ProxyAddress.Builder<B>>
java.lang.Object
org.javagi.gobject.Builder<B>
org.gnome.gobject.GObject.Builder<B>
org.gnome.gio.SocketAddress.Builder<B>
org.gnome.gio.InetSocketAddress.Builder<B>
org.gnome.gio.ProxyAddress.Builder<B>
- Type Parameters:
B- the type of the Builder that is returned
- All Implemented Interfaces:
BuilderInterface
- Enclosing class:
ProxyAddress
public static class ProxyAddress.Builder<B extends ProxyAddress.Builder<B>>
extends InetSocketAddress.Builder<B>
Inner class implementing a builder pattern to construct a GObject with
properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Finish building theProxyAddressobject.setDestinationHostname(String destinationHostname) The proxy destination hostname.setDestinationPort(int destinationPort) The proxy destination port.setDestinationProtocol(String destinationProtocol) The protocol being spoke to the destination host, ornullif theGProxyAddressdoesn't know.setPassword(String password) The proxy password.setProtocol(String protocol) The proxy protocol.The URI string that the proxy was constructed from (ornullif the creator didn't specify this).setUsername(String username) The proxy username.Methods inherited from class org.gnome.gio.InetSocketAddress.Builder
setAddress, setFlowinfo, setPort, setScopeIdMethods 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 theProxyAddressobject. 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 toProxyAddress.- Overrides:
buildin classInetSocketAddress.Builder<B extends ProxyAddress.Builder<B>>- Returns:
- a new instance of
ProxyAddresswith the properties that were set in the Builder object.
-
setDestinationHostname
-
setDestinationPort
The proxy destination port.- Parameters:
destinationPort- the value for thedestination-portproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.26
-
setDestinationProtocol
The protocol being spoke to the destination host, ornullif theGProxyAddressdoesn't know.- Parameters:
destinationProtocol- the value for thedestination-protocolproperty- Returns:
- the
Builderinstance is returned, to allow method chaining - Since:
- 2.34
-
setPassword
-
setProtocol
-
setUri
-
setUsername
-