public class IPYYClient extends Object
| Constructor and Description |
|---|
IPYYClient(String url,
ReturnSMSUnmarshaller returnSMSUnmarshaller,
String account,
String password) |
| Modifier and Type | Method and Description |
|---|---|
ReturnSMS |
send(String[] mobiles,
String content) |
ReturnSMS |
send(String mobile,
String content) |
void |
setConnectTimeout(Integer connectTimeout)
Determines the timeout in milliseconds until a connection is established.
|
void |
setProxy(org.apache.http.HttpHost proxy)
The HTTP proxy to be used for request execution.
|
void |
setSocketTimeout(Integer socketTimeout)
Defines the socket timeout (
SO_TIMEOUT) in milliseconds,
which is the timeout for waiting for data or, put differently,
a maximum period inactivity between two consecutive data packets. |
public IPYYClient(String url, ReturnSMSUnmarshaller returnSMSUnmarshaller, String account, String password)
public void setSocketTimeout(Integer socketTimeout)
SO_TIMEOUT) in milliseconds,
which is the timeout for waiting for data or, put differently,
a maximum period inactivity between two consecutive data packets.
A timeout value of zero is interpreted as an infinite timeout. A negative value is interpreted as undefined (system default).
Default: -1
socketTimeout - the timeout for waiting for data or,
put differently, a maximum period inactivity between two consecutive
data packets.RequestConfig.getSocketTimeout()public void setConnectTimeout(Integer connectTimeout)
A timeout value of zero is interpreted as an infinite timeout. A negative value is interpreted as undefined (system default).
Default: -1
connectTimeout - the timeout in milliseconds until a connection is establishedRequestConfig.getConnectTimeout()public void setProxy(org.apache.http.HttpHost proxy)
Default: null
proxy - the HTTP proxyRequestConfig.getProxy()public ReturnSMS send(String mobile, String content) throws IOException
IOExceptionpublic ReturnSMS send(String[] mobiles, String content) throws IOException
IOExceptionCopyright © 2019. All rights reserved.