public class PayrollConnector extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,String> |
headers |
protected String |
serviceUrl |
protected int |
timeout |
| Constructor and Description |
|---|
PayrollConnector() |
| Modifier and Type | Method and Description |
|---|---|
String |
doTransaction(String verb,
String endpoint) |
String |
doTransaction(String verb,
String endpoint,
String data) |
String |
doTransaction(String verb,
String endpoint,
String data,
HashMap<String,String> queryStringParams) |
String |
getApiKey() |
PayrollEncoder |
getEncoder() |
HashMap<String,String> |
getHeaders() |
String |
getPassword() |
String |
getServiceUrl() |
int |
getTimeout() |
String |
getUsername() |
protected String |
handleResponse(com.global.api.gateways.GatewayResponse response) |
<T extends PayrollEntity> |
sendEncryptedRequest(IPayrollRequestBuilder requestBuilder,
Class<T> clazz,
Object... args) |
<T extends PayrollEntity> |
sendEncryptedRequest(PayrollRequest request,
Class<T> clazz) |
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 |
setApiKey(String apiKey) |
void |
setEnableLogging(boolean enableLogging) |
void |
setEncoder(PayrollEncoder encoder) |
void |
setHeaders(HashMap<String,String> headers) |
void |
setPassword(String password) |
void |
setServiceUrl(String serviceUrl) |
void |
setTimeout(int timeout) |
void |
setUsername(String username) |
void |
signIn() |
void |
signOut() |
protected int timeout
protected String serviceUrl
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public String getApiKey()
public void setApiKey(String apiKey)
public PayrollEncoder getEncoder()
public void setEncoder(PayrollEncoder encoder)
public void signIn()
throws ApiException
ApiExceptionpublic void signOut()
throws ApiException
ApiExceptionpublic <T extends PayrollEntity> PayrollResponse<T> sendEncryptedRequest(IPayrollRequestBuilder requestBuilder, Class<T> clazz, Object... args) throws ApiException
ApiExceptionpublic <T extends PayrollEntity> PayrollResponse<T> sendEncryptedRequest(PayrollRequest request, Class<T> clazz) throws ApiException
ApiExceptionprotected String handleResponse(com.global.api.gateways.GatewayResponse response) throws GatewayException
GatewayExceptionpublic String doTransaction(String verb, String endpoint) throws GatewayException
GatewayExceptionpublic String doTransaction(String verb, String endpoint, String data) throws GatewayException
GatewayExceptionpublic String doTransaction(String verb, String endpoint, String data, HashMap<String,String> queryStringParams) 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.