com.sun.tck.wma

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.tck.wma 
com.sun.tck.wma
WMA TCK Message Service WMA TCK Message Service.

This proposal is made with the assumption that the minimal requirement for a WMA implementation is that the following functionality is available:

  • The ability to send a Message to the network.
  • The ability to receive a Message from the network.
Abilities to send a Message to the network and to perform device-to-device exchange are optional.

In this situation, the only possible way for TCK to test for sending/receiving messages is to require that some J2SE-based framework API will provide the functionality of a "network-initiated send" and "network-side receive" to the implementation under test. "Round trip" tests in which the device sends/receives Messages to itself will not work for all expected WMA implementations.

This document contains a proposal for the framework API. The framework is intended to run on J2SE and would be exhibit functionality approximately the same as WMA.

The framework would be located in the package, com.sun.tck.wma package. The following APIs that were unnecessary for testing and that have been omitted are:

Connector.open*Stream
Connector.open(String, ...)  Methods with more than one parameter
MessageConnection.numberOfSegments
MessageConnection.setMessageListener
MessageListener
    

The proposal does not contain Javadoc comments, assuming that these will be copied from the WMA specification.

The API consists of a set of interfaces with the single entry point com.sun.tck.wma.Connector interface and its open(String) method. Licensees and the reference implementation should provide an implementation of these interfaces and should specify the name of the class that implements the com.sun.tck.wma.Connector interface to the TCK.

The TCK will use a distributed test framework which tests if the Message, sent from the device, can be received by the network (and vice versa).

Possible problems with this approach:

  • There would be an extra requirement of this implementation to provide a J2SE implementation of WMA for TCK testing purposes. The J2SE WMA implementation would be dependent on this implementation's WMA implementation (Message transport and formatting.). The J2SE WMA implementation can be done by the TCK team, with support for any changes to this J2SE-WMA implementation.
  • There would be an unreasonable requirement on the licensee to the support "round trip" tests in the WMA implementation. An API would be required to map WMA to the underlying protocol.
Java Source File NameTypeComment
BinaryMessage.javaInterface An interface representing a binary message.
Connector.javaInterface A factory class for creating new MessageConnection objects.
Message.javaInterface This is the base interface for derived interfaces representing various types of messages.
MessageConnection.javaInterface A connection handler for generic message receiving and sending.
MessageObject.javaClass Implements a SMS message for the SMS message connection.
MessagePart.javaClass Instances of the MessagePart class can be added to a MultipartMessage.
MessageTransportConstants.javaClass Message transport constants, including encoding formats and transport-specific (i.e., datagram-specific) constants.
MultipartMessage.javaInterface An interface representing a multipart message.
PropLoader.javaClass Tool for load properties from environment or property object.
SizeExceededException.javaClass Indicates that an operation is not executable due to insufficient system resources.
TextMessage.javaInterface An interface representing a text message.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.