| java.lang.Object com.sun.j2me.payment.PaymentAdapter com.sun.j2me.payment.PPSMSAdapter
PPSMSAdapter | public class PPSMSAdapter extends PaymentAdapter (Code) | | This Premium Priced SMS (PPSMS) Adapter sends messages to a PPSMS number,
which defines a payment model. The value of a transaction is determined
by the premium priced number to which the SMS is sent and/or by the content
described in the body of that SMS.
|
Method Summary | |
public String | getDisplayName() Gets a display name of this adapter. | public static PPSMSAdapter | getInstance(String configuration) Gets a new instance of this adapter. | public static void | initSecurityToken(SecurityToken token) Initializes the security token for this class, so it can
perform actions that a normal MIDlet Suite cannot. | public Transaction | process(Transaction transaction) Processes the given transaction, updates its state and returns the same
transaction instance or a new one (an instance of
a Transaction subclass), which is based on the old
transaction, but adds more (adapter specific) information to it. | public void | validatePriceInfo(double price, String paySpecificPriceInfo) Validates the price information which are specified in the application
manifest file for the provider handled by this adapter. |
getDisplayName | public String getDisplayName()(Code) | | Gets a display name of this adapter.
the display name |
getInstance | public static PPSMSAdapter getInstance(String configuration)(Code) | | Gets a new instance of this adapter.
Parameters: configuration - configuration info of PPSMSAdapter the new instance of PPSMSAdapter |
initSecurityToken | public static void initSecurityToken(SecurityToken token)(Code) | | Initializes the security token for this class, so it can
perform actions that a normal MIDlet Suite cannot.
Parameters: token - security token for this class. |
process | public Transaction process(Transaction transaction)(Code) | | Processes the given transaction, updates its state and returns the same
transaction instance or a new one (an instance of
a Transaction subclass), which is based on the old
transaction, but adds more (adapter specific) information to it.
Parameters: transaction - the transaction to be processed the transaction after processing |
validatePriceInfo | public void validatePriceInfo(double price, String paySpecificPriceInfo) throws PaymentException(Code) | | Validates the price information which are specified in the application
manifest file for the provider handled by this adapter. It throws an
PaymentException if the parameters are incorrect.
Parameters: price - the price to pay when using this provider Parameters: paySpecificPriceInfo - the specific price information string from the manifest throws: PaymentException - if the provided information is correct |
|
|