public abstract class ApiOperationBase<Q extends ANetApiRequest,S extends ANetApiResponse> extends Object implements IApiOperation<Q,S>
Modifier and Type | Field and Description |
---|---|
protected static org.apache.logging.log4j.Logger |
logger |
protected MessageTypeEnum |
resultCode |
protected List<String> |
results |
Modifier | Constructor and Description |
---|---|
protected |
ApiOperationBase(Q apiRequest) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterExecute() |
protected void |
beforeExecute() |
void |
execute() |
void |
execute(Environment environment) |
S |
executeWithApiResponse() |
S |
executeWithApiResponse(Environment environment) |
protected Q |
getApiRequest() |
S |
getApiResponse() |
String |
getClientId() |
static Environment |
getEnvironment() |
ANetApiResponse |
getErrorResponse() |
static MerchantAuthenticationType |
getMerchantAuthentication() |
protected abstract Class<S> |
getResponseType() |
MessageTypeEnum |
getResultCode() |
List<String> |
getResults() |
protected void |
setApiRequest(Q apiRequest) |
protected void |
setClientId() |
static void |
setEnvironment(Environment environment) |
static void |
setMerchantAuthentication(MerchantAuthenticationType merchantAuthentication) |
protected abstract void |
validateRequest() |
protected static org.apache.logging.log4j.Logger logger
protected MessageTypeEnum resultCode
protected ApiOperationBase(Q apiRequest)
protected Q getApiRequest()
protected void setApiRequest(Q apiRequest)
protected void setClientId()
public S getApiResponse()
getApiResponse
in interface IApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
public ANetApiResponse getErrorResponse()
getErrorResponse
in interface IApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
public static Environment getEnvironment()
public static void setEnvironment(Environment environment)
public static MerchantAuthenticationType getMerchantAuthentication()
public static void setMerchantAuthentication(MerchantAuthenticationType merchantAuthentication)
public S executeWithApiResponse()
executeWithApiResponse
in interface IApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
public S executeWithApiResponse(Environment environment)
executeWithApiResponse
in interface IApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
public void execute()
execute
in interface IApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
public void execute(Environment environment)
execute
in interface IApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
public MessageTypeEnum getResultCode()
getResultCode
in interface IApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
public List<String> getResults()
getResults
in interface IApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
protected void beforeExecute()
protected void afterExecute()
protected abstract void validateRequest()
public String getClientId()
Copyright © 2021. All rights reserved.