public static class HTML2PDF.Proxy
extends java.lang.Object
Note: These Proxy settings will only be used if type is not e_default.
Modifier and Type | Field and Description |
---|---|
static int |
e_default
The Constant e_default.
|
static int |
e_http
The Constant e_http.
|
static int |
e_none
The Constant e_none.
|
static int |
e_socks5
The Constant e_socks5.
|
Constructor and Description |
---|
Proxy()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Frees the native memory of the object.
|
void |
setHost(java.lang.String host)
Set the proxy host to use.
|
void |
setPassword(java.lang.String password)
Set the password to use when logging into the proxy with username
|
void |
setPort(int port)
Set the port number to use
|
void |
setType(int type)
Set the type of proxy to use.
|
void |
setUsername(java.lang.String username)
Set the username to use when logging into the proxy
|
public static final int e_default
public static final int e_none
public static final int e_http
public static final int e_socks5
public Proxy() throws PDFNetException
PDFNetException
public void destroy()
public void setType(int type) throws PDFNetException
type
- - If e_default, use whatever the html2pdf library decides
on. If e_none, explicitly sets that no proxy is to be used.
If e_http or e_socks5 then the corresponding proxy protocol is used.PDFNetException
public void setHost(java.lang.String host) throws PDFNetException
host
- - String defining the host name, e.g. "myserver" or "www.xxx.yyy.zzz"PDFNetException
public void setPort(int port) throws PDFNetException
port
- - A valid port number, e.g. 3128.PDFNetException
public void setUsername(java.lang.String username) throws PDFNetException
username
- - The login name, e.g. "elbarto".PDFNetException
public void setPassword(java.lang.String password) throws PDFNetException
password
- - The password to use, e.g. "bart".PDFNetException