public abstract class Proxy extends Object implements com.aspose.ms.System.IDisposable
Base proxy client.
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this instance and requests that the underlying TCP connection be closed.
|
String |
getAddress()
The domain name or IP address of the proxy server
|
String |
getPassword()
Password for proxy authentication
|
int |
getPort()
The port number for the proxy server
|
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.
|
String |
getUsername()
Username for proxy authentication
|
void |
setAddress(String value)
The domain name or IP address of the proxy server
|
void |
setPassword(String value)
Password for proxy authentication
|
void |
setPort(int value)
The port number for the proxy server
|
void |
setUsername(String value)
Username for proxy authentication
|
public final String getAddress()
The domain name or IP address of the proxy server
public final void setAddress(String value)
The domain name or IP address of the proxy server
public final int getPort()
The port number for the proxy server
public final void setPort(int value)
The port number for the proxy server
public final String getUsername()
Username for proxy authentication
public final void setUsername(String value)
Username for proxy authentication
public final String getPassword()
Password for proxy authentication
public final void setPassword(String value)
Password for proxy authentication
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.
address
- The domain name of the host we want to contactport
- The port number of the host we want to contactpublic void dispose()
Disposes this instance and requests that the underlying TCP connection be closed.
dispose
in interface com.aspose.ms.System.IDisposable