public class Communicator extends Object
Constructor and Description |
---|
Communicator() |
Modifier and Type | Method and Description |
---|---|
String |
sendRequest(String targetURL,
long timeout,
String proxyHost,
String proxyPort,
String proxyUser,
String proxyPwd)
Method for sending a HTTP request to the input targetURL.
|
String |
sendSocketRequest(String targetURL,
String proxyhost,
String proxyport,
String proxyUser,
String proxyPwd,
long timeout)
Executes the input targetURL.
|
byte[] |
sendVASocketRequest(String httpURL,
String proxyhost,
String proxyport,
byte[] request,
String contentType,
long timeout) |
public String sendSocketRequest(String targetURL, String proxyhost, String proxyport, String proxyUser, String proxyPwd, long timeout) throws BIDException
targetURL
- String THe http get urlproxyhost
- String proxy hostproxyport
- String proxy portproxyUser
- String proxy userproxyPwd
- String proxypwdtimeout
- long timeout in millisBIDException
- If something failspublic String sendRequest(String targetURL, long timeout, String proxyHost, String proxyPort, String proxyUser, String proxyPwd) throws BIDException
targetURL
- String The target URLtimeout
- long HTTP connection timeout valueproxyHost
- String The proxy host ot tunnel through or nullproxyPort
- String The proxy port on the proxy hostproxyUser
- The proxy userproxyPwd
- The proxy passwordBIDException
- If something failspublic byte[] sendVASocketRequest(String httpURL, String proxyhost, String proxyport, byte[] request, String contentType, long timeout) throws BIDException
BIDException
Copyright © 2017 Nets Branch Norway. All Rights Reserved.