com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class Proxy

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable
    Direct Known Subclasses:
    HttpProxy, SocksProxy


    public abstract class Proxy
    extends Object
    implements com.aspose.ms.System.IDisposable

    Base proxy client.

    • Method Detail

      • getAddress

        public final String getAddress()

        The domain name or IP address of the proxy server

      • setAddress

        public final void setAddress(String value)

        The domain name or IP address of the proxy server

      • getPort

        public final int getPort()

        The port number for the proxy server

      • setPort

        public final void setPort(int value)

        The port number for the proxy server

      • getUsername

        public final String getUsername()

        Username for proxy authentication

      • setUsername

        public final void setUsername(String value)

        Username for proxy authentication

      • getPassword

        public final String getPassword()

        Password for proxy authentication

      • setPassword

        public final void setPassword(String value)

        Password for proxy authentication

      • getStream

        public com.aspose.ms.System.IO.Stream getStream(String address,
                                               int port)

        Returns configured network stream to transport data to the required host through the proxy server.

        Parameters:
        address - The domain name of the host we want to contact
        port - The port number of the host we want to contact
        Returns:
        Returns configure network stream to connect with required host through the proxy server.
      • dispose

        public void dispose()

        Disposes this instance and requests that the underlying TCP connection be closed.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable