java.lang.Object | |
↳ | com.pdftron.pdf.HTML2PDF.Proxy |
Proxy settings to be used when loading content from web pages.
Note: These Proxy settings will only be used if type is not e_default.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | e_default | The Constant e_default. | |||||||||
int | e_http | The Constant e_http. | |||||||||
int | e_none | The Constant e_none. | |||||||||
int | e_socks5 | The Constant e_socks5. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Proxy()
Default constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
close()
Frees the native memory of the object.
| ||||||||||
void |
destroy()
Frees the native memory of the object.
| ||||||||||
void |
setHost(String host)
Set the proxy host to use.
| ||||||||||
void |
setPassword(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(String username)
Set the username to use when logging into the proxy
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
The Constant e_default.
The Constant e_http.
The Constant e_none.
The Constant e_socks5.
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
PDFNetException |
---|
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
Set the proxy host to use.
host | - String defining the host name, e.g. "myserver" or "www.xxx.yyy.zzz" |
---|
PDFNetException |
---|
Set the password to use when logging into the proxy with username
password | - The password to use, e.g. "bart". |
---|
PDFNetException |
---|
Set the type of proxy to use.
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 |
---|
Set the username to use when logging into the proxy
username | - The login name, e.g. "elbarto". |
---|
PDFNetException |
---|