public class IPYYClient extends Object
Modifier and Type | Field and Description |
---|---|
private String |
account |
private Integer |
connectTimeout |
private String |
password |
private org.apache.http.HttpHost |
proxy |
private ReturnSMSUnmarshaller |
returnSMSUnmarshaller |
private Integer |
socketTimeout |
private String |
url |
Constructor and Description |
---|
IPYYClient(String url,
ReturnSMSUnmarshaller returnSMSUnmarshaller,
String account,
String password) |
Modifier and Type | Method and Description |
---|---|
org.oxerr.ipyy.client.dto.ReturnSMS |
send(String[] mobiles,
String content) |
org.oxerr.ipyy.client.dto.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. |
private final String url
private final String account
private final String password
private Integer socketTimeout
private Integer connectTimeout
private org.apache.http.HttpHost proxy
private final ReturnSMSUnmarshaller returnSMSUnmarshaller
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 org.oxerr.ipyy.client.dto.ReturnSMS send(String mobile, String content) throws IOException
IOException
public org.oxerr.ipyy.client.dto.ReturnSMS send(String[] mobiles, String content) throws IOException
IOException
Copyright © 2019. All rights reserved.