Package org.gnome.gio
Class ProxyAddress.Builder<B extends ProxyAddress.Builder<B>>
java.lang.Object
io.github.jwharm.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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finish building theProxyAddress
object.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, ornull
if theGProxyAddress
doesn't know.setPassword
(String password) The proxy password.setProtocol
(String protocol) The proxy protocol.The URI string that the proxy was constructed from (ornull
if the creator didn't specify this).setUsername
(String username) The proxy username.Methods inherited from class org.gnome.gio.InetSocketAddress.Builder
setAddress, setFlowinfo, setPort, setScopeId
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 theProxyAddress
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 toProxyAddress
.- Overrides:
build
in classInetSocketAddress.Builder<B extends ProxyAddress.Builder<B>>
- Returns:
- a new instance of
ProxyAddress
with the properties that were set in the Builder object.
-
setDestinationHostname
-
setDestinationPort
The proxy destination port.- Parameters:
destinationPort
- the value for thedestination-port
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setDestinationProtocol
The protocol being spoke to the destination host, ornull
if theGProxyAddress
doesn't know.- Parameters:
destinationProtocol
- the value for thedestination-protocol
property- Returns:
- the
Builder
instance is returned, to allow method chaining
-
setPassword
-
setProtocol
-
setUri
-
setUsername
-