public abstract class Gateway extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,String> |
dynamicHeaders |
protected Environment |
environment |
protected HashMap<String,String> |
headers |
protected String |
serviceUrl |
protected int |
timeout |
protected Proxy |
webProxy |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addMaskedData(Map<String,String> dataToMask) |
String |
getRawResponse(InputStream responseStream) |
String |
getRawResponse(InputStream responseStream,
Boolean isGzip) |
protected GatewayResponse |
sendRequest(String endpoint,
org.apache.http.entity.mime.MultipartEntity content) |
protected GatewayResponse |
sendRequest(String verb,
String endpoint) |
protected GatewayResponse |
sendRequest(String verb,
String endpoint,
String data) |
protected GatewayResponse |
sendRequest(String verb,
String endpoint,
String data,
HashMap<String,String> queryStringParams) |
protected int timeout
protected String serviceUrl
protected Proxy webProxy
protected Environment environment
public Gateway(String contentType)
protected GatewayResponse sendRequest(String verb, String endpoint) throws GatewayException
GatewayExceptionprotected GatewayResponse sendRequest(String verb, String endpoint, String data) throws GatewayException
GatewayExceptionprotected GatewayResponse sendRequest(String verb, String endpoint, String data, HashMap<String,String> queryStringParams) throws GatewayException
GatewayExceptionpublic String getRawResponse(InputStream responseStream) throws IOException
IOExceptionpublic String getRawResponse(InputStream responseStream, Boolean isGzip) throws IOException
IOExceptionprotected GatewayResponse sendRequest(String endpoint, org.apache.http.entity.mime.MultipartEntity content) throws GatewayException
GatewayExceptionCopyright © 2024. All rights reserved.