|
Oracle Application Server Wireless Java API Reference B10400-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() |
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) |
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 static BillingController getInstance()
public boolean isBillingEnabled()
public BillingTransaction getCurrentTransaction()
public void setCurrentTransaction(BillingTransaction transaction)
public 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 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 preService(BillingContext context) throws BillingException
context
- The billing context passed to create the service detail recordBillingException
- Incase of any failurepublic 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
BillingException
- Incase of any failurepublic void setRegisterMessagingStatusListener(StatusListener statusListener)
statusListener
- the status listener object which implements the StatusListener interface
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |