Class ProxyResolver

All Implemented Interfaces:
PointerInterface

public class ProxyResolver extends Interface
#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.

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

  • Constructor Details

  • Method Details

    • 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.)
      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 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.
      Parameters:
      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.
      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

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()