|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.wireless.billing.BillingController
Billing controller handles the billing system interaction for the components
Method Summary | |
BillingResult |
cancelService(BillingContext context, java.lang.String referenceId) Called to inform the billing system of cancellation of the service request |
BillingResult |
cancelService(ServiceDetailRecord sdr) Called to inform the billing system of cancellation of the service request |
BillingTransaction |
getCurrentTransaction() The transaction could be set by the driver or collector or application |
static BillingController |
getInstance() Returns the current instance of BillingController |
boolean |
isBillingEnabled() returns true/false config parameter to indicate that billing is enabled |
BillingResult |
postService(BillingContext context) Called to inform the billing system after the service request This call is made to create SDR. |
BillingResult |
postService(BillingContext context, java.lang.String referenceId) Called to inform the billing system after the service request This call is made to create SDR and set the reference id. |
BillingResult |
postService(ServiceDetailRecord sdr) Called to inform the billing system after the service request The service detail record passed here is the one returned during the the preService() The SDR is logged to the database before contacting the billing system |
BillingResult |
preService(BillingContext context) Called to inform the billing system before the service request |
void |
setCurrentTransaction(BillingTransaction transaction) Sets the current billing transaction to the specified value |
static void |
setRegisterMessagingStatusListener(StatusListener statusListener) Registers a messaging status listener with the messaging server to getting message status callbacks. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public BillingResult cancelService(BillingContext context, java.lang.String referenceId) throws BillingException
context
- The billing context passed to create the service detail recordBillingException
- Incase of any failurepublic BillingResult cancelService(ServiceDetailRecord sdr) throws BillingException
sdr
- The service detail record containing the billing reference idBillingException
- Incase of any failurepublic BillingTransaction getCurrentTransaction()
public static BillingController getInstance()
BillingController
BillingController
public boolean isBillingEnabled()
public BillingResult postService(BillingContext context) throws BillingException
context
- The billing context passed to create the service detail recordBillingException
- Incase of any failurepublic BillingResult postService(BillingContext context, java.lang.String referenceId) throws BillingException
context
- The billing context passed to create the service detail recordreferenceId
- The billing reference id returned by billling system during preServiceBillingException
- Incase of any failurepublic BillingResult postService(ServiceDetailRecord sdr) throws BillingException
sdr
- The service detail record created during the preService() call. If the component doesn't have the SDR created during preService - the overloaded api can be usedBillingException
- Incase of any failurepublic BillingResult preService(BillingContext context) throws BillingException
context
- The billing context passed to create the service detail recordBillingException
- Incase of any failurepublic void setCurrentTransaction(BillingTransaction transaction)
transaction
- the new value of BillingTransaction
public static void setRegisterMessagingStatusListener(StatusListener statusListener)
statusListener
- the status listener object which implements the StatusListener interface
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |