com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class HttpProxy

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable


    public class HttpProxy
    extends Proxy

    HTTP proxy client.

    • Constructor Detail

      • HttpProxy

        public HttpProxy(String address,
                 int port)

        Initializes a new instance of the HttpProxy class to connect to proxy server without authentication.

        Parameters:
        address - The domain name or IP address of the proxy
        port - The port number of the proxy
      • HttpProxy

        public HttpProxy(String address,
                 int port,
                 String username,
                 String password)

        Initializes a new instance of the HttpProxy class to connect to proxy server with defined username and password.

        Parameters:
        address - The domain name or IP address of the proxy
        port - The port number of the proxy
        username - Username for authentication
        password - Password for authentication
    • Method Detail

      • getSupportedAuthenticationMethods

        public final byte getSupportedAuthenticationMethods()

        The supported authentication methods to connect to HTTP proxy

      • setSupportedAuthenticationMethods

        public final void setSupportedAuthenticationMethods(byte value)

        The supported authentication methods to connect to HTTP proxy

      • setUpStream

        public void setUpStream(com.aspose.ms.System.IO.Stream stream,
                       String address,
                       int port)

        Configures proxy-server to transport data to the target host.

        Parameters:
        stream - Stream which is connected to the proxy-server.
        address - The network address of the target host we want to contact
        port - The port number of the target host we want to contact