public class UniversalChargeEventListener extends java.lang.Object implements ChargeEventListener, ChargingResultListener, CleanupEventListener, CheckLimitEventListener, PrePostRateEventListener, ActivateEventListener, TranslateEventListener, SessionEventListener, BatchChargeEventListener, ISessionResultListener, AcquisitionListener, IMonitorSpendingStatusResultListener
IMonitorSpendingStatusResultListener.ISpendingStatusMonitoringResult, IMonitorSpendingStatusResultListener.MonitoringAction| Constructor and Description |
|---|
UniversalChargeEventListener(int timeout) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<AcquisitionResult> |
getAcquisitionResults() |
PurchaseOrder |
getActivateResult() |
BatchChargeResult |
getBatchChargeResult() |
ChargingResult |
getChargingResult() |
CheckLimitResult |
getCheckLimitResult() |
CleanupResult |
getCleanupResult() |
StartSubscriptionReratingResult |
getInformStartSubscriptionRerating() |
boolean |
getInformStopSubscriptionRerating() |
PostRateResult |
getPostRateResult() |
PreRateResult |
getPreRateResult() |
PurchaseOrder |
getPurchaseOrder() |
ISessionOperationResult |
getSessionResult() |
IMonitorSpendingStatusResultListener.ISpendingStatusMonitoringResult |
getSpendingStatusMonitoringResult() |
StartRateResult |
getStartRateResult() |
StopRateResult |
getStopRateResult() |
java.lang.Object[] |
getTranslateResult() |
UpdateRateResult |
getUpdateRateResult() |
void |
onException(ActivateException e)
Invoked when the activate operation fails because of an
ActivateException. |
void |
onException(BatchChargeException e)
Invoked when the cleanup operation fails because of a
batchChargeException. |
void |
onException(CannotInverseException e)
Invoked when the check limit operation fails because of a
CannotInverseException. |
void |
onException(CleanupException e)
Invoked when the cleanup operation fails because of a
CleanupException. |
void |
onException(CommunicationFailureException e)
Invoked when a network issue has been detected.
|
void |
onException(DoesNotExistException e)
Invoked when the translate operation fails because the translation table does not exist.
|
void |
onException(ForbiddenChargeException e)
Invoked when the rating is not allowed.
|
void |
onException(java.lang.IllegalArgumentException e)
Invoked when an argument of an operation request is invalid.
|
void |
onException(InvalidItemException e)
Invoked when a chargeable item was invalid and the
InvalidItemException is
thrown by the connected SAP CC system. |
void |
onException(PostRateException e)
Invoked when the postrate operation fails because of a
PostRateException. |
void |
onException(PreRateException e)
Invoked when the prerate operation fails because of a
PreRateException. |
void |
onException(RerateSubscriptionException e)
Invoked when the rerating operation fails because of a
RerateSubscriptionException. |
void |
onException(ServerFailureException e)
Invoked when the rater instances in the connected SAP CC system can not handle the business operation request.
|
void |
onException(StartRateException e)
Invoked when rating session can not be created.
|
void |
onException(StopRateException e)
Invoked when usage transactions can not be cleared.
|
void |
onException(TransactionClearingException e)
Invoked if the Transaction Processor plugged on the PnR output, is not able
to clear at least one of the generated transactions.
|
void |
onException(UpdateRateException e)
Invoked when rating session can not be updated.
|
void |
onResult(BatchChargeResult b)
Invoked when the cleanup operation is successful.
|
void |
onResult(boolean reratingResult,
int fromSnapshotId,
java.util.Date fromDate) |
void |
onResult(ChargingResult result)
Invoked when the charging operation is successful.
|
void |
onResult(CheckLimitResult result)
Invoked when the check limit operation is successful.
|
void |
onResult(CleanupResult result)
Invoked when the cleanup operation is successful.
|
void |
onResult(IMonitorSpendingStatusResultListener.ISpendingStatusMonitoringResult spendingStatusMonitoringResult)
Invoked each time a request of spending status monitoring has been processed successfully.
|
void |
onResult(java.util.List<AcquisitionResult> results)
Invoked by the
asynchronous batch service client when the SAP CC system returns the result of
the AsyncBatchServiceClient.acquire(List, AcquisitionListener) method. |
void |
onResult(java.lang.Object[] translate)
Invoked when the translate operation is successful.
|
void |
onResult(PostRateResult result)
Invoked when the postrate operation is successful.
|
void |
onResult(PreRateResult result)
Invoked when the prerate operation is successful.
|
void |
onResult(PurchaseOrder order)
Invoked when the charging operation is successful.
|
void |
onSessionError(SessionOperationException error)
Invoked each time a session event has not been processed because session control raised an exception.
|
void |
onSessionResult(ISessionOperationResult result)
Invoked each time a session event has been processed, successfully or not.
|
void |
onStartRateResult(StartRateResult result)
Invoked when the start rate operation is successful.
|
void |
onStopRateResult(StopRateResult result)
Invoked when the stop rate operation is successful.
|
void |
onUpdateRateResult(UpdateRateResult result)
Invoked when the update rate operation is successful.
|
boolean |
pingReratingOperationResult() |
void |
waitForResponse() |
public void onResult(PurchaseOrder order)
ChargeEventListeneronResult in interface ActivateEventListeneronResult in interface ChargeEventListenerorder - The {PurchaseOrder result} of the charging operationpublic void onResult(ChargingResult result)
ChargingResultListeneronResult in interface ChargingResultListenerresult - the result of the charging operationpublic void onException(TransactionClearingException e)
ChargeEventListeneronException in interface ActivateEventListeneronException in interface BatchChargeEventListeneronException in interface ChargeEventListeneronException in interface ChargingResultListeneronException in interface CheckLimitEventListeneronException in interface CleanupEventListeneronException in interface PrePostRateEventListeneronException in interface SessionEventListenere - The Transaction Clearing exception to be handledpublic void onException(java.lang.IllegalArgumentException e)
ChargeExceptionListeneronException in interface ChargeExceptionListenere - The exception to be handledpublic void onException(InvalidItemException e)
InvalidItemListenerInvalidItemException is
thrown by the connected SAP CC system.onException in interface InvalidItemListeneronException in interface SessionEventListenere - The exception to be handled in your client applicationpublic void onException(ForbiddenChargeException e)
ChargeEventListeneronException in interface ActivateEventListeneronException in interface BatchChargeEventListeneronException in interface ChargeEventListeneronException in interface ChargingResultListeneronException in interface CheckLimitEventListeneronException in interface CleanupEventListeneronException in interface ForbiddenChargeExceptionListeneronException in interface IMonitorSpendingStatusResultListeneronException in interface PrePostRateEventListeneronException in interface SessionEventListenere - The Forbidden Charge exception to be handledpublic void onException(ServerFailureException e)
ChargeExceptionListeneronException in interface ChargeExceptionListenere - The exception to be handledpublic void onException(CommunicationFailureException e)
ChargeExceptionListeneronException in interface ChargeExceptionListenere - The exception to be handledpublic void onException(CleanupException e)
CleanupEventListenerCleanupException.onException in interface CleanupEventListenere - the exception to be handled.public void onResult(CleanupResult result)
CleanupEventListeneronResult in interface CleanupEventListenerresult - the result of the cleanup operation.public void onException(CannotInverseException e)
CheckLimitEventListenerCannotInverseException.onException in interface CheckLimitEventListenere - the exception to be handled.public void onResult(CheckLimitResult result)
CheckLimitEventListeneronResult in interface CheckLimitEventListenerresult - the result of the charging operation.public void onException(PreRateException e)
PrePostRateEventListenerPreRateException.onException in interface PrePostRateEventListenere - the exception to be handled.public void onException(PostRateException e)
PrePostRateEventListenerPostRateException.onException in interface PrePostRateEventListenere - the exception to be handled.public void onResult(PreRateResult result)
PrePostRateEventListeneronResult in interface PrePostRateEventListenerresult - the result of the prerate operation.public void onResult(PostRateResult result)
PrePostRateEventListeneronResult in interface PrePostRateEventListenerresult - the result of the postrate operation.public void onException(ActivateException e)
ActivateEventListenerActivateException.onException in interface ActivateEventListenere - the exception to be handled.public void onException(DoesNotExistException e)
TranslateEventListeneronException in interface TranslateEventListenere - the exception to be handled.public void onResult(java.lang.Object[] translate)
TranslateEventListeneronResult in interface TranslateEventListenertranslate - an array of the translated Object.public void onException(StartRateException e)
SessionEventListeneronException in interface SessionEventListenere - the exception to be handled.public void onException(StopRateException e)
SessionEventListeneronException in interface SessionEventListenere - the exception to be handled.public void onException(UpdateRateException e)
SessionEventListeneronException in interface SessionEventListenere - the exception to be handled.public void onStartRateResult(StartRateResult result)
SessionEventListeneronStartRateResult in interface SessionEventListenerresult - a rating result used to reserve the balance.public void onStopRateResult(StopRateResult result)
SessionEventListeneronStopRateResult in interface SessionEventListenerresult - the result of the stop rate operation.public void onUpdateRateResult(UpdateRateResult result)
SessionEventListeneronUpdateRateResult in interface SessionEventListenerresult - the result of the cleanup operation.public void onSessionResult(ISessionOperationResult result)
ISessionResultListeneronSessionResult in interface ISessionResultListenerresult - The result to be handledpublic void onSessionError(SessionOperationException error)
ISessionResultListeneronSessionError in interface ISessionResultListenererror - The error to be handledpublic void onResult(boolean reratingResult,
int fromSnapshotId,
java.util.Date fromDate)
onResult in interface BatchChargeEventListenerpublic void onResult(BatchChargeResult b)
BatchChargeEventListeneronResult in interface BatchChargeEventListenerb - The result of the cleanup operationpublic void onResult(java.util.List<AcquisitionResult> results)
AcquisitionListenerasynchronous batch service client when the SAP CC system returns the result of
the AsyncBatchServiceClient.acquire(List, AcquisitionListener) method.onResult in interface AcquisitionListenerresults - A list of acquisition results, in the same order as the parameters specified as
arguments of the method AsyncBatchServiceClient.acquire(List, AcquisitionListener) that was used
to request the batch acquisition operationpublic void onResult(IMonitorSpendingStatusResultListener.ISpendingStatusMonitoringResult spendingStatusMonitoringResult)
IMonitorSpendingStatusResultListeneronResult in interface IMonitorSpendingStatusResultListenerspendingStatusMonitoringResult - The result to handlepublic void onException(BatchChargeException e)
BatchChargeEventListenerbatchChargeException.onException in interface BatchChargeEventListenere - The Batch Charge exception to be handledpublic void onException(RerateSubscriptionException e)
BatchChargeEventListenerRerateSubscriptionException.onException in interface BatchChargeEventListenere - The Rerate Subscription exception to be handledpublic void waitForResponse()
throws CommunicationFailureException
CommunicationFailureExceptionpublic StartRateResult getStartRateResult() throws ServerFailureException, ForbiddenChargeException, InvalidItemException, TransactionClearingException, CommunicationFailureException, StartRateException
public StopRateResult getStopRateResult() throws ServerFailureException, ForbiddenChargeException, InvalidItemException, TransactionClearingException, CommunicationFailureException, StopRateException
public UpdateRateResult getUpdateRateResult() throws ServerFailureException, ForbiddenChargeException, InvalidItemException, TransactionClearingException, CommunicationFailureException, UpdateRateException
public ISessionOperationResult getSessionResult() throws CommunicationFailureException, ServerFailureException, java.lang.IllegalArgumentException, ForbiddenChargeException, SessionOperationException
CommunicationFailureExceptionServerFailureExceptionjava.lang.IllegalArgumentExceptionForbiddenChargeExceptionSessionOperationExceptionpublic java.lang.Object[] getTranslateResult()
throws ServerFailureException,
ForbiddenChargeException,
InvalidItemException,
TransactionClearingException,
CommunicationFailureException,
DoesNotExistException
public PreRateResult getPreRateResult() throws CommunicationFailureException, PreRateException, ServerFailureException, ForbiddenChargeException, InvalidItemException, TransactionClearingException
public PostRateResult getPostRateResult() throws ServerFailureException, ForbiddenChargeException, InvalidItemException, TransactionClearingException, CommunicationFailureException, PostRateException
public CheckLimitResult getCheckLimitResult() throws CommunicationFailureException, CannotInverseException, ServerFailureException, ForbiddenChargeException, InvalidItemException, TransactionClearingException
public CleanupResult getCleanupResult() throws CleanupException, ServerFailureException, ForbiddenChargeException, TransactionClearingException, CommunicationFailureException
public PurchaseOrder getPurchaseOrder() throws CommunicationFailureException, ServerFailureException, ForbiddenChargeException, InvalidItemException, TransactionClearingException
public ChargingResult getChargingResult() throws CommunicationFailureException, ServerFailureException, ForbiddenChargeException, InvalidItemException, TransactionClearingException
public PurchaseOrder getActivateResult() throws ServerFailureException, ForbiddenChargeException, TransactionClearingException, CommunicationFailureException, ActivateException
public BatchChargeResult getBatchChargeResult() throws CommunicationFailureException, ForbiddenChargeException, ServerFailureException, BatchChargeException, TransactionClearingException
public java.util.List<AcquisitionResult> getAcquisitionResults() throws CommunicationFailureException, ServerFailureException
public StartSubscriptionReratingResult getInformStartSubscriptionRerating() throws CommunicationFailureException, ServerFailureException, RerateSubscriptionException
public IMonitorSpendingStatusResultListener.ISpendingStatusMonitoringResult getSpendingStatusMonitoringResult() throws CommunicationFailureException, ServerFailureException, ForbiddenChargeException
public boolean getInformStopSubscriptionRerating()
throws CommunicationFailureException,
ForbiddenChargeException,
ServerFailureException,
TransactionClearingException
public boolean pingReratingOperationResult()
throws CommunicationFailureException,
ForbiddenChargeException,
ServerFailureException,
TransactionClearingException