| com.pnfsoftware.jeb.util.net.INet |
Known Indirect Subclasses
|
Convenience network utility interface to issue common GET/POST (http or https) queries that return textual contents.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract long |
downloadBinary(File dstfile, String url, Map<String, String> urlParams, Map<String, String> serverHeaders, IProgressCallback progressCallback)
Download a binary and dump it to disk.
| ||||||||||
| abstract INet |
duplicate()
Duplicate this object to perform safe parameter update.
| ||||||||||
| abstract int | getConnectTimeout() | ||||||||||
| abstract int | getReadTimeout() | ||||||||||
| abstract SecureSocketInfo | getSecureSocketInfo() | ||||||||||
| abstract String | getUserAgent() | ||||||||||
| abstract int | getWriteTimeout() | ||||||||||
| abstract String |
post(String url, Map<String, String> urlParams, Map<String, String> bodyParams, Map<String, String> serverHeaders)
Perform an http POST request to send a simple form.
| ||||||||||
| abstract String |
post(String url, Map<String, String> urlParams, Map<String, String> bodyParams)
@return
| ||||||||||
| abstract String |
postMultipart(String url, Map<String, String> formParams, Map<String, FormFileEntry> formFiles, Map<String, String> serverHeaders)
Perform an http POST request to send a form using the
multipart/form-data
encoding. | ||||||||||
| abstract String |
postMultipart(String url, Map<String, String> formParams, Map<String, FormFileEntry> formFiles)
@return
| ||||||||||
| abstract String |
query(String url, Map<String, String> parameters, Map<String, String> serverHeaders)
Perform an http GET request.
| ||||||||||
| abstract String |
query(String url)
Perform an http GET request.
| ||||||||||
| abstract String |
query(String url, Map<String, String> parameters)
@return
| ||||||||||
| abstract byte[] |
queryBinary(String url, Map<String, String> parameters)
@return
| ||||||||||
| abstract byte[] |
queryBinary(String url, Map<String, String> urlParams, Map<String, String> serverHeaders, IProgressCallback progressCallback)
Perform an http GET request.
| ||||||||||
| abstract byte[] |
queryBinary(String url, Map<String, String> parameters, Map<String, String> serverHeaders)
Perform an http GET request.
| ||||||||||
| abstract byte[] |
queryBinary(String url)
Perform an http GET request.
| ||||||||||
| abstract void | setConnectTimeout(int timeout) | ||||||||||
| abstract void | setReadTimeout(int timeout) | ||||||||||
| abstract void | setSecureSocketInfo(SecureSocketInfo info) | ||||||||||
| abstract void | setUserAgent(String userAgent) | ||||||||||
| abstract void | setWriteTimeout(int timeout) | ||||||||||
Download a binary and dump it to disk. Similar to
queryBinary(String, Map, Map, IProgressCallback), but the downloaded data is not
stored and returned, therefore making this method more suitable to download Large files.
| progressCallback | optional listener |
|---|
| IOException |
|---|
Duplicate this object to perform safe parameter update.
Perform an http POST request to send a simple form.
| url | url with optional parameters |
|---|---|
| urlParams | optional additional url parameters |
| bodyParams | request content parameters |
| IOException | on error |
|---|
@return
| IOException |
|---|
Perform an http POST request to send a form using the multipart/form-data
encoding.
| url | url with optional parameters |
|---|---|
| formParams | optional request content parameters |
| formFiles | optional request content files |
| IOException | on error |
|---|
@return
| IOException |
|---|
Perform an http GET request.
| url | url with optional parameters |
|---|---|
| parameters | optional additional url parameters |
| IOException | on error |
|---|
Perform an http GET request.
| url | url with optional parameters |
|---|
| IOException | on error |
|---|
@return
| IOException |
|---|
@return
| IOException |
|---|
Perform an http GET request.
| progressCallback | optional listener |
|---|
| IOException |
|---|
Perform an http GET request.
| url | url with optional parameters |
|---|---|
| parameters | optional additional url parameters |
| IOException | on error |
|---|
Perform an http GET request.
| url | url with optional parameters |
|---|
| IOException | on error |
|---|
| timeout | in milliseconds |
|---|
| timeout | timeout in milliseconds |
|---|
| userAgent | a user-agent |
|---|
| timeout | timeout in milliseconds |
|---|