public abstract class XmlGateway extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,String> |
headers |
protected String |
serviceUrl |
protected int |
timeout |
| Constructor and Description |
|---|
XmlGateway() |
| Modifier and Type | Method and Description |
|---|---|
String |
doTransaction(String request) |
HashMap<String,String> |
getHeaders() |
String |
getServiceUrl() |
int |
getTimeout() |
protected com.global.api.gateways.GatewayResponse |
sendRequest(String endpoint,
org.apache.http.entity.mime.MultipartEntity content) |
protected com.global.api.gateways.GatewayResponse |
sendRequest(String verb,
String endpoint) |
protected com.global.api.gateways.GatewayResponse |
sendRequest(String verb,
String endpoint,
String data) |
protected com.global.api.gateways.GatewayResponse |
sendRequest(String verb,
String endpoint,
String data,
HashMap<String,String> queryStringParams) |
void |
setEnableLogging(boolean enableLogging) |
void |
setHeaders(HashMap<String,String> headers) |
void |
setServiceUrl(String serviceUrl) |
void |
setTimeout(int timeout) |
protected int timeout
protected String serviceUrl
public String doTransaction(String request) throws GatewayException
GatewayExceptionpublic void setEnableLogging(boolean enableLogging)
public int getTimeout()
public void setTimeout(int timeout)
public String getServiceUrl()
public void setServiceUrl(String serviceUrl)
protected com.global.api.gateways.GatewayResponse sendRequest(String verb, String endpoint) throws GatewayException
GatewayExceptionprotected com.global.api.gateways.GatewayResponse sendRequest(String verb, String endpoint, String data) throws GatewayException
GatewayExceptionprotected com.global.api.gateways.GatewayResponse sendRequest(String verb, String endpoint, String data, HashMap<String,String> queryStringParams) throws GatewayException
GatewayExceptionprotected com.global.api.gateways.GatewayResponse sendRequest(String endpoint, org.apache.http.entity.mime.MultipartEntity content) throws GatewayException
GatewayExceptionCopyright © 2019. All rights reserved.