Java Doc for PaymentInfo.java in  » 6.0-JDK-Modules » j2me » com » sun » j2me » payment » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » com.sun.j2me.payment 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j2me.payment.PaymentInfo

PaymentInfo
final public class PaymentInfo (Code)
This class represents the payment information read from the application Manifest file or obtained from the associated update URL.
version:
   1.11


Field Summary
final public static  intAUTO_REQUEST_ACCEPT
     A value indicating that the auto request mode is set to accept.
final public static  intAUTO_REQUEST_OFF
     A value indicating that the auto request mode is disabled.
final public static  intAUTO_REQUEST_REJECT
     A value indicating that the auto request mode is set to reject.


Method Summary
public  booleancache()
     Returns true if the payment information should be stored for the next time.
public static  PaymentInfocreateFromProperties(Properties jadProperties, Properties jarProperties)
     Creates an instance of the PaymentInfo class.
public  voidexport(Writer os)
     Exports the payment information into the given character output stream.
public  intgetDbgAutoRequestMode()
     Returns the debug auto request mode setting.
public  booleangetDbgFailIO()
     Test for the debug fail IO mode.
public  booleangetDbgFailInitialize()
     Test for the debug fail initialize mode.
public  intgetDbgMissedTransactions()
     Returns the number of fake missed transactions that should be generated when the application starts.
public  booleangetDbgRandomTests()
     Test for the debug random tests mode.
public  intgetNumFeatures()
     Gets the number of features the application can request the user to pay for.
public  intgetNumProviders()
     Returns the number of providers which can be used to pay for the application features.
public  intgetPriceTagForFeature(int index)
     Returns the price tag for the given feature id.
public  ProviderInfogetProvider(int index)
     Return the provider information for the given provider id.
public  DategetUpdateDate()
     Returns the date of the last update or null if the payment information has been never updated.
public  DategetUpdateStamp()
     Gets the time stamp of last update.
public  StringgetUpdateURL()
     Returns the URL of the payment update.
public  booleanisDemoMode()
     Test for the debug demo mode.
public  booleanneedsUpdate()
     Test if the payment information can be used for payment as is or it needs to be updated first from the update URL.
public  voidupdatePaymentInfo(byte[] data, String charset)
     Validates the given payment update and if correct it updates the internal state of the object accordingly.
public static  voidvalidateJadProperties(Properties jadProperties)
     Validates JAD properties.

Field Detail
AUTO_REQUEST_ACCEPT
final public static int AUTO_REQUEST_ACCEPT(Code)
A value indicating that the auto request mode is set to accept.



AUTO_REQUEST_OFF
final public static int AUTO_REQUEST_OFF(Code)
A value indicating that the auto request mode is disabled.



AUTO_REQUEST_REJECT
final public static int AUTO_REQUEST_REJECT(Code)
A value indicating that the auto request mode is set to reject.





Method Detail
cache
public boolean cache()(Code)
Returns true if the payment information should be stored for the next time. true if the payment information should be cached



createFromProperties
public static PaymentInfo createFromProperties(Properties jadProperties, Properties jarProperties) throws PaymentException(Code)
Creates an instance of the PaymentInfo class. It reads information from the provided JAD and Manifest properties.
Parameters:
  jadProperties - the JAD properties
Parameters:
  jarProperties - the Manifest properties the instance of the PaymentInfo class
throws:
  PaymentException - if some of the properties are incorrect, incomplete, unsupported, etc.



export
public void export(Writer os) throws IOException(Code)
Exports the payment information into the given character output stream.
Parameters:
  os - the output stream
throws:
  IOException - indicates an output error



getDbgAutoRequestMode
public int getDbgAutoRequestMode()(Code)
Returns the debug auto request mode setting. AUTO_REQUEST_OFF if the auto request mode is disabled, AUTO_REQUEST_ACCEPT if the auto request modeis set to accept and AUTO_REQUEST_REJECT if it is set to reject
See Also:   PaymentInfo.AUTO_REQUEST_OFF
See Also:   PaymentInfo.AUTO_REQUEST_ACCEPT
See Also:   PaymentInfo.AUTO_REQUEST_REJECT



getDbgFailIO
public boolean getDbgFailIO()(Code)
Test for the debug fail IO mode. true if the debug fail IO mode should be activated



getDbgFailInitialize
public boolean getDbgFailInitialize()(Code)
Test for the debug fail initialize mode. true if the debug fail initialize mode should beactivated



getDbgMissedTransactions
public int getDbgMissedTransactions()(Code)
Returns the number of fake missed transactions that should be generated when the application starts. the number of missed transactions to generate or -1if this debug mode is disabled



getDbgRandomTests
public boolean getDbgRandomTests()(Code)
Test for the debug random tests mode. true if the debug random tests mode should beactivated



getNumFeatures
public int getNumFeatures()(Code)
Gets the number of features the application can request the user to pay for. the number of paid features



getNumProviders
public int getNumProviders()(Code)
Returns the number of providers which can be used to pay for the application features. the number of providers



getPriceTagForFeature
public int getPriceTagForFeature(int index)(Code)
Returns the price tag for the given feature id.
Parameters:
  index - the feature id the price tag



getProvider
public ProviderInfo getProvider(int index)(Code)
Return the provider information for the given provider id.
Parameters:
  index - the provider id the provider information



getUpdateDate
public Date getUpdateDate()(Code)
Returns the date of the last update or null if the payment information has been never updated. the last update date or null



getUpdateStamp
public Date getUpdateStamp()(Code)
Gets the time stamp of last update. the time stamp



getUpdateURL
public String getUpdateURL()(Code)
Returns the URL of the payment update. the update URL



isDemoMode
public boolean isDemoMode()(Code)
Test for the debug demo mode. true if the debug demo mode should be activated



needsUpdate
public boolean needsUpdate()(Code)
Test if the payment information can be used for payment as is or it needs to be updated first from the update URL. true if the payment information needs to be updated



updatePaymentInfo
public void updatePaymentInfo(byte[] data, String charset) throws PaymentException(Code)
Validates the given payment update and if correct it updates the internal state of the object accordingly.
Parameters:
  data - a byte array which contains the payment update
Parameters:
  charset - the character set of the payment update
throws:
  PaymentException - if the payment update is incorrect



validateJadProperties
public static void validateJadProperties(Properties jadProperties) throws PaymentException(Code)
Validates JAD properties.
Parameters:
  jadProperties - the JAD properties
throws:
  PaymentException - if some of the properties are incorrect, incomplete, unsupported, etc.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.