Class ProxyAddress

All Implemented Interfaces:
PointerInterface

public class ProxyAddress extends InetSocketAddress
Support for proxied #GInetSocketAddress.

https://docs.gtk.org/gio/class.ProxyAddress.html

  • Constructor Details

    • ProxyAddress

      public ProxyAddress(PointerContainer pointer)
    • 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

      public static ClassHandler getClassHandler()
    • getDestinationHostname

      public Str 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

      public Str getDestinationProtocol()
      Gets the protocol that is being spoken to the destination
      server; eg, "http" or "ftp".
      Returns:
      the @proxy's destination protocol
    • getPassword

      public Str getPassword()
      Gets @proxy's password.
      Returns:
      the @proxy's password
    • getProtocol

      public Str getProtocol()
      Gets @proxy's protocol. eg, "socks" or "http"
      Returns:
      the @proxy's protocol
    • getUri

      public Str getUri()
      Gets the proxy URI that @proxy was constructed from.
      Returns:
      the @proxy's URI, or %NULL if unknown
    • getUsername

      public Str getUsername()
      Gets @proxy's username.
      Returns:
      the @proxy's username
    • asSocketConnectable

      public SocketConnectable asSocketConnectable()
      Implements interface SocketConnectable. Call this to get access to interface functions.
      Overrides:
      asSocketConnectable in class InetSocketAddress
      Returns:
      SocketConnectable
    • 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()