Klasse ProxyResolver

Alle implementierten Schnittstellen:
PointerInterface

public class ProxyResolver extends Interface
`GProxyResolver` provides synchronous and asynchronous network proxy
resolution. `GProxyResolver` is used within [class@Gio.SocketClient] through
the method [method@Gio.SocketConnectable.proxy_enumerate].

Implementations of `GProxyResolver` based on
[libproxy](https://github.com/libproxy/libproxy) and GNOME settings can be
found in [glib-networking](https://gitlab.gnome.org/GNOME/glib-networking).
GIO comes with an implementation for use inside Flatpak portals.

https://docs.gtk.org/gio/iface.ProxyResolver.html

  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler 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.)
      Gibt zurück:
      %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.
      Parameter:
      uri - a URI representing the destination to connect to
      cancellable - a #GCancellable, or %NULL
      callback - callback to call after resolution completes
      user_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.
      Parameter:
      uri - a URI representing the destination to connect to
      cancellable - a #GCancellable, or %NULL
      callback - callback to call after resolution completes
      user_data - data for @callback
    • getDefault

      public static ProxyResolver getDefault()
      Gets the default #GProxyResolver for the system.
      Gibt zurück:
      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

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()