public abstract class AbstractAction<T extends Response> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Client |
client |
protected HashMap<String,InputStream> |
files |
protected HashMap<String,String> |
params |
protected Proxy |
proxy |
static String |
RESPONSE_PACKAGE_NAME |
| Constructor and Description |
|---|
AbstractAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
client(Client client) |
protected abstract T |
createResponse(String data) |
protected abstract String |
endPoint() |
T |
execute() |
protected void |
handleError(String text) |
protected String |
httpMethod() |
void |
proxy(Proxy proxy) |
protected AbstractAction<T> |
setJson(boolean flag) |
public static final String RESPONSE_PACKAGE_NAME
protected Client client
protected Proxy proxy
protected HashMap<String,InputStream> files
protected abstract String endPoint()
protected String httpMethod()
protected AbstractAction<T> setJson(boolean flag)
public void client(Client client)
public void proxy(Proxy proxy)
public T execute() throws SmsapiException
SmsapiExceptionprotected void handleError(String text) throws SmsapiErrorException, SmsapiLegacyErrorException
Copyright © 2024. All rights reserved.