Class ApiOperationBase<Q extends ANetApiRequest,S extends ANetApiResponse>
- java.lang.Object
-
- net.authorize.api.controller.base.ApiOperationBase<Q,S>
-
- All Implemented Interfaces:
IApiOperation<Q,S>
- Direct Known Subclasses:
ARBCancelSubscriptionController
,ARBCreateSubscriptionController
,ARBGetSubscriptionController
,ARBGetSubscriptionListController
,ARBGetSubscriptionStatusController
,ARBUpdateSubscriptionController
,AuthenticateTestController
,CreateCustomerPaymentProfileController
,CreateCustomerProfileController
,CreateCustomerProfileFromTransactionController
,CreateCustomerProfileTransactionController
,CreateCustomerShippingAddressController
,CreateFingerPrintController
,CreateTransactionController
,DecryptPaymentDataController
,DeleteCustomerPaymentProfileController
,DeleteCustomerProfileController
,DeleteCustomerShippingAddressController
,GetAUJobDetailsController
,GetAUJobSummaryController
,GetBatchStatisticsController
,GetCustomerPaymentProfileController
,GetCustomerPaymentProfileListController
,GetCustomerPaymentProfileNonceController
,GetCustomerProfileController
,GetCustomerProfileIdsController
,GetCustomerShippingAddressController
,GetHostedPaymentPageController
,GetHostedProfilePageController
,GetMerchantDetailsController
,GetSettledBatchListController
,GetTransactionDetailsController
,GetTransactionListController
,GetTransactionListForCustomerController
,GetUnsettledTransactionListController
,IsAliveController
,LogoutController
,MobileDeviceLoginController
,MobileDeviceRegistrationController
,SecurePaymentContainerController
,SendCustomerTransactionReceiptController
,UpdateCustomerPaymentProfileController
,UpdateCustomerProfileController
,UpdateCustomerShippingAddressController
,UpdateHeldTransactionController
,UpdateMerchantDetailsController
,UpdateSplitTenderGroupController
,ValidateCustomerPaymentProfileController
public abstract class ApiOperationBase<Q extends ANetApiRequest,S extends ANetApiResponse> extends Object implements IApiOperation<Q,S>
- Author:
- ramittal
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.apache.logging.log4j.Logger
logger
protected MessageTypeEnum
resultCode
protected List<String>
results
-
Constructor Summary
Constructors Modifier Constructor Description protected
ApiOperationBase(Q apiRequest)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
logger
protected static org.apache.logging.log4j.Logger logger
-
resultCode
protected MessageTypeEnum resultCode
-
-
Constructor Detail
-
ApiOperationBase
protected ApiOperationBase(Q apiRequest)
-
-
Method Detail
-
getApiRequest
protected Q getApiRequest()
-
setApiRequest
protected void setApiRequest(Q apiRequest)
-
setClientId
protected void setClientId()
-
getApiResponse
public S getApiResponse()
- Specified by:
getApiResponse
in interfaceIApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
-
getErrorResponse
public ANetApiResponse getErrorResponse()
- Specified by:
getErrorResponse
in interfaceIApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
-
getEnvironment
public static Environment getEnvironment()
-
setEnvironment
public static void setEnvironment(Environment environment)
-
getMerchantAuthentication
public static MerchantAuthenticationType getMerchantAuthentication()
-
setMerchantAuthentication
public static void setMerchantAuthentication(MerchantAuthenticationType merchantAuthentication)
-
executeWithApiResponse
public S executeWithApiResponse()
- Specified by:
executeWithApiResponse
in interfaceIApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
-
executeWithApiResponse
public S executeWithApiResponse(Environment environment)
- Specified by:
executeWithApiResponse
in interfaceIApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
-
execute
public void execute()
- Specified by:
execute
in interfaceIApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
-
execute
public void execute(Environment environment)
- Specified by:
execute
in interfaceIApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
-
getResultCode
public MessageTypeEnum getResultCode()
- Specified by:
getResultCode
in interfaceIApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
-
getResults
public List<String> getResults()
- Specified by:
getResults
in interfaceIApiOperation<Q extends ANetApiRequest,S extends ANetApiResponse>
-
beforeExecute
protected void beforeExecute()
-
afterExecute
protected void afterExecute()
-
validateRequest
protected abstract void validateRequest()
-
getClientId
public String getClientId()
-
-