Package ch.bailu.gtk.gio
Class ProxyAddress
- All Implemented Interfaces:
PointerInterface
Support for proxied #GInetSocketAddress.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
ConstructorDescriptionProxyAddress
(InetAddress inetaddr, int port, Str protocol, Str dest_hostname, int dest_port, Str username, Str password) Creates a new #GProxyAddress for @inetaddr with @protocol that should
tunnel through @dest_hostname and @dest_port.ProxyAddress
(InetAddress inetaddr, int port, String protocol, String dest_hostname, int dest_port, String username, String password) Creates a new #GProxyAddress for @inetaddr with @protocol that should
tunnel through @dest_hostname and @dest_port.ProxyAddress
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionImplements interfaceSocketConnectable
.static ClassHandler
Gets @proxy's destination hostname; that is, the name of the host
that will be connected to via the proxy, not the name of the proxy
itself.int
Gets @proxy's destination port; that is, the port on the
destination host that will be connected to via the proxy, not the
port number of the proxy itself.Gets the protocol that is being spoken to the destination
server; eg, "http" or "ftp".static int
static long
static TypeSystem.TypeSize
Gets @proxy's password.Gets @proxy's protocol. eg, "socks" or "http"static long
static TypeSystem.TypeSize
getUri()
Gets the proxy URI that @proxy was constructed from.Gets @proxy's username.Methods inherited from class ch.bailu.gtk.gio.InetSocketAddress
getAddress, getFlowinfo, getPort, getScopeId, newFromStringInetSocketAddress, newFromStringInetSocketAddress
Methods inherited from class ch.bailu.gtk.gio.SocketAddress
getFamily, getNativeSize, newFromNativeSocketAddress, toNative
Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
ProxyAddress
-
ProxyAddress
public ProxyAddress(@Nonnull InetAddress inetaddr, int port, @Nonnull Str protocol, @Nonnull Str dest_hostname, int dest_port, @Nullable Str username, @Nullable Str password) Creates a new #GProxyAddress for @inetaddr with @protocol that should
tunnel through @dest_hostname and @dest_port.
(Note that this method doesn't set the #GProxyAddress:uri or
#GProxyAddress:destination-protocol fields; use g_object_new()
directly if you want to set those.)- Parameters:
inetaddr
- The proxy server #GInetAddress.port
- The proxy server port.protocol
- The proxy protocol to support, in lower case (e.g. socks, http).dest_hostname
- The destination hostname the proxy should tunnel to.dest_port
- The destination port to tunnel to.username
- The username to authenticate to the proxy server (or %NULL).password
- The password to authenticate to the proxy server (or %NULL).
-
ProxyAddress
public ProxyAddress(@Nonnull InetAddress inetaddr, int port, String protocol, String dest_hostname, int dest_port, String username, String password) Creates a new #GProxyAddress for @inetaddr with @protocol that should
tunnel through @dest_hostname and @dest_port.
(Note that this method doesn't set the #GProxyAddress:uri or
#GProxyAddress:destination-protocol fields; use g_object_new()
directly if you want to set those.)- Parameters:
inetaddr
- The proxy server #GInetAddress.port
- The proxy server port.protocol
- The proxy protocol to support, in lower case (e.g. socks, http).dest_hostname
- The destination hostname the proxy should tunnel to.dest_port
- The destination port to tunnel to.username
- The username to authenticate to the proxy server (or %NULL).password
- The password to authenticate to the proxy server (or %NULL).
-
-
Method Details
-
getClassHandler
-
getDestinationHostname
Gets @proxy's destination hostname; that is, the name of the host
that will be connected to via the proxy, not the name of the proxy
itself.- Returns:
- the @proxy's destination hostname
-
getDestinationPort
public int getDestinationPort()Gets @proxy's destination port; that is, the port on the
destination host that will be connected to via the proxy, not the
port number of the proxy itself.- Returns:
- the @proxy's destination port
-
getDestinationProtocol
Gets the protocol that is being spoken to the destination
server; eg, "http" or "ftp".- Returns:
- the @proxy's destination protocol
-
getPassword
Gets @proxy's password.- Returns:
- the @proxy's password
-
getProtocol
Gets @proxy's protocol. eg, "socks" or "http"- Returns:
- the @proxy's protocol
-
getUri
Gets the proxy URI that @proxy was constructed from.- Returns:
- the @proxy's URI, or %NULL if unknown
-
getUsername
Gets @proxy's username.- Returns:
- the @proxy's username
-
asSocketConnectable
Implements interfaceSocketConnectable
. Call this to get access to interface functions.- Overrides:
asSocketConnectable
in classInetSocketAddress
- Returns:
SocketConnectable
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-