Proxy

Inheritance: java.lang.Object

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

public abstract class Proxy implements System.IDisposable

Base proxy client.

Methods

Method Description
getAddress() The domain name or IP address of the proxy server
setAddress(String value) The domain name or IP address of the proxy server
getPort() The port number for the proxy server
setPort(int value) The port number for the proxy server
getUsername() Username for proxy authentication
setUsername(String value) Username for proxy authentication
getPassword() Password for proxy authentication
setPassword(String value) Password for proxy authentication
getStream(String address, int port) Returns configured network stream to transport data to the required host through the proxy server.
dispose() Disposes this instance and requests that the underlying TCP connection be closed.

getAddress()

public final String getAddress()

The domain name or IP address of the proxy server

Returns: java.lang.String

setAddress(String value)

public final void setAddress(String value)

The domain name or IP address of the proxy server

Parameters:

Parameter Type Description
value java.lang.String

getPort()

public final int getPort()

The port number for the proxy server

Returns: int

setPort(int value)

public final void setPort(int value)

The port number for the proxy server

Parameters:

Parameter Type Description
value int

getUsername()

public final String getUsername()

Username for proxy authentication

Returns: java.lang.String

setUsername(String value)

public final void setUsername(String value)

Username for proxy authentication

Parameters:

Parameter Type Description
value java.lang.String

getPassword()

public final String getPassword()

Password for proxy authentication

Returns: java.lang.String

setPassword(String value)

public final void setPassword(String value)

Password for proxy authentication

Parameters:

Parameter Type Description
value java.lang.String

getStream(String address, int port)

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

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

Parameters:

Parameter Type Description
address java.lang.String The domain name of the host we want to contact
port int The port number of the host we want to contact

Returns: com.aspose.ms.System.IO.Stream - 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.