Package ch.bailu.gtk.gio
Class ProxyResolver
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.Interface
ch.bailu.gtk.gio.ProxyResolver
- All Implemented Interfaces:
PointerInterface
#GProxyResolver provides synchronous and asynchronous network proxy
resolution. #GProxyResolver is used within #GSocketClient through
the method g_socket_connectable_proxy_enumerate().
Implementations of #GProxyResolver based on libproxy and GNOME settings can
be found in glib-networking. GIO comes with an implementation for use inside
Flatpak portals.
resolution. #GProxyResolver is used within #GSocketClient through
the method g_socket_connectable_proxy_enumerate().
Implementations of #GProxyResolver based on libproxy and GNOME settings can
be found in glib-networking. GIO comes with an implementation for use inside
Flatpak portals.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
static ProxyResolver
Gets the default #GProxyResolver for the system.static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
Checks if @resolver can be used on this system.void
lookupAsync
(Str uri, Cancellable cancellable, ProxyResolver.OnAsyncReadyCallback callback, Pointer user_data) Asynchronous lookup of proxy.void
lookupAsync
(String uri, Cancellable cancellable, ProxyResolver.OnAsyncReadyCallback callback, Pointer user_data) Asynchronous lookup of proxy.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
-
ProxyResolver
-
-
Method Details
-
getClassHandler
-
isSupported
public boolean isSupported()Checks if @resolver can be used on this system. (This is used
internally; g_proxy_resolver_get_default() will only return a proxy
resolver that returns %TRUE for this method.)- Returns:
- %TRUE if @resolver is supported.
-
lookupAsync
public void lookupAsync(@Nonnull Str uri, @Nullable Cancellable cancellable, ProxyResolver.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronous lookup of proxy. See g_proxy_resolver_lookup() for more
details.- Parameters:
uri
- a URI representing the destination to connect tocancellable
- a #GCancellable, or %NULLcallback
- callback to call after resolution completesuser_data
- data for @callback
-
lookupAsync
public void lookupAsync(String uri, @Nullable Cancellable cancellable, ProxyResolver.OnAsyncReadyCallback callback, @Nullable Pointer user_data) Asynchronous lookup of proxy. See g_proxy_resolver_lookup() for more
details.- Parameters:
uri
- a URI representing the destination to connect tocancellable
- a #GCancellable, or %NULLcallback
- callback to call after resolution completesuser_data
- data for @callback
-
getDefault
Gets the default #GProxyResolver for the system.- Returns:
- the default #GProxyResolver, which will be a dummy object if no proxy resolver is available
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-