public class HttpProxy extends Proxy
HTTP proxy client.
Constructor and Description |
---|
HttpProxy(String address,
int port)
Initializes a new instance of the
HttpProxy class to connect to proxy server without authentication. |
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. |
Modifier and Type | Method and Description |
---|---|
byte |
getSupportedAuthenticationMethods()
The supported authentication methods to connect to HTTP proxy
|
void |
setSupportedAuthenticationMethods(byte value)
The supported authentication methods to connect to HTTP proxy
|
void |
setUpStream(com.aspose.ms.System.IO.Stream stream,
String address,
int port)
Configures proxy-server to transport data to the target host.
|
dispose, getAddress, getPassword, getPort, getStream, getUsername, setAddress, setPassword, setPort, setUsername
public HttpProxy(String address, int port)
Initializes a new instance of the HttpProxy
class to connect to proxy server without authentication.
address
- The domain name or IP address of the proxyport
- The port number of the proxypublic 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.
address
- The domain name or IP address of the proxyport
- The port number of the proxyusername
- Username for authenticationpassword
- Password for authenticationpublic final byte getSupportedAuthenticationMethods()
The supported authentication methods to connect to HTTP proxy
public final void setSupportedAuthenticationMethods(byte value)
The supported authentication methods to connect to HTTP proxy
public void setUpStream(com.aspose.ms.System.IO.Stream stream, String address, int port)
Configures proxy-server to transport data to the target host.
stream
- Stream which is connected to the proxy-server.address
- The network address of the target host we want to contactport
- The port number of the target host we want to contactCopyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.