ALL RIGHTS RESERVED UNDER JSPA (JAVA SPECIFICATION PARTICIPATION AGREEMENT)
Information Module Profile (JSR-195) JCP Specification, version 1.0 Java 2 Platform, Microedition
- Final Release –
© 2003 Siemens Mobile and Nokia.
Portions Copyright 2003 Sun Microsystems, Inc. and Motorola, Inc. ALL RIGHTS RESERVED UNDER JSPA (JAVA SPECIFICATION PARTICIPATION AGREEMENT)
Content
Preface ...... 3 Revision History...... 3 Who Should Use This Specification...... 4 How This Specification Is Organized...... 4 Related Literature ...... 5 Maintenance Note...... 5 1 Introduction and Background...... 6 1.1 Introduction...... 6 1.2 Background ...... 6 1.3 Document Conventions...... 7 1.3.1 Definitions...... 7 1.3.2 Formatting Conventions ...... 7 2 Requirements and Scope...... 8 2.1 Requirements...... 8 2.1.1 Hardware ...... 8 2.1.2 Software ...... 9 2.2 Scope...... 10 2.3 IMP and Optional Packages ...... 10 3 Architecture...... 11 3.1 Overview...... 11 3.2 General architecture ...... 11 3.3 IMlets ...... 13 4 System Functions ...... 14 4.1 Overview...... 14 4.2 System Properties...... 14 4.3 Application Resource Files ...... 15 4.4 System.exit...... 15 4.5 Runtime.exit...... 15 5 Timers ...... 16 5.1 Overview...... 16 5.2 Timers ...... 16 6 Networking ...... 17 6.1 Overview...... 17 6.2 HttpConnection ...... 18 6.2.1 HTTP Request Headers ...... 19 6.3 DatagramConnection...... 20 7 Persistent Storage...... 21 7.1 Overview...... 21 7.2 Record Store...... 21 7.3 Records...... 22 8 Applications ...... 23 8.1 Overview...... 23 8.2 IMP IMlet Suite...... 23 8.3 IMP Execution Environment...... 24 8.4 IMlet Suite Packaging ...... 25 8.4.1 JAR Manifest...... 27 8.4.2 IMlet Classes ...... 28 8.5 Application Descriptor ...... 28 8.6 Application Lifecycle...... 30 Appendix A Implementation Notes ...... 32
2 Information Module Profile (JSR-195), Final Release 10.07.03 ALL RIGHTS RESERVED UNDER JSPA (JAVA SPECIFICATION PARTICIPATION AGREEMENT)
Preface
This document, Information Module Profile (JSR-195) Specification, defines the Information Module Device Profile (IMP) for JavaTM 2 Platform, Micro Edition (J2METM).
Revision History
Date Version Description
15-Nov-2002 0.1 Initial draft presented to EG 27-Nov-2002 0.2 Changes following proposals from Motorola 11-Mar-2003 0.9 Community Review Draft 15-Apr-2003 0.95 Public Review Draft 16-May-2003 0.97 Proposed Final Draft 27-May-2003 0.99 Final Approval Ballot Draft 10-Jul-2003 1.0 Final Release
10.07.03 Information Module Profile (JSR-195), Final Release 3 ALL RIGHTS RESERVED UNDER JSPA (JAVA SPECIFICATION PARTICIPATION AGREEMENT)
Who Should Use This Specification
The audience for this document is the Java Community Process (JCP) expert group defining this profile, implementors of the IMP, and application developers targeting the IMP.
A profile of J2ME defines device-type-specific sets of APIs for a particular vertical market or industry. Profiles are more exactly defined in the related publication, Configurations and Profiles Architecture Specification, Sun Microsystems, Inc.
How This Specification Is Organized
The topics in this specification are organized according to the following chapters:
Chapter 1, “Introduction and Background”, provides a context for the IM Profile and defines key terms used in this specification.
Chapter 2, “Requirements and Scope”, defines the scope of the specification and lists the requirements.
Chapter 3, “Architecture”, defines the high-level architecture of the IMP.
Chapter 4, “System Functions”, defines how the IMP extends or modifies APIs from the CLDC.
Chapter 5, “Timers”, defines the IMP APIs for calendar and time functions.
Chapter 6, “Networking”, defines the networking APIs of the IMP.
Chapter 7, “Persistent Storage”, defines the storage APIs for the IMP.
Chapter 8, “Applications”, defines the concept of an IMP application and provides an overview to the associated APIs.
Appendix A, “Implementation Notes”, discusses implementation issues for OEMs and developers.
4 Information Module Profile (JSR-195), Final Release 10.07.03 ALL RIGHTS RESERVED UNDER JSPA (JAVA SPECIFICATION PARTICIPATION AGREEMENT)
Related Literature
The JavaTM Language Specification by James Gosling, Bill Joy, and Guy L. Steele. Addison-Wesley, 1996, ISBN 0-201-63451-1
The JavaTM Virtual Machine Specification (Java Series), Second Edition by Tim Lindholm and Frank Yellin. Addison-Wesley, 1999, ISBN 0-201-43294-3
Connected, Limited Device Configuration (JSR-30), Sun Microsystems, Inc.
Mobile Information Device Profile (JSR-37), Motorola / Sun Microsystems, Inc.
J2ME Platform Specification (JSR-68), Sun Microsystems, Inc.
Mobile Information Device Profile 2.0 (JSR-118), Motorola / Sun Microsystems, Inc.
Maintenance Note
Siemens Mobile and Nokia, who are joint specification leads for JSR-195 (Information Module Profile) have granted Sun Microsystems Inc. the rights to implementation and license the reference implementation (RI) and Technology Compatibility Kit (TCK) for JSR 195. Further, since IMP (JSR-195) is a strict subset of MIDP 1.0 (JSR-037), and in an effort to minimize the risk of fragmentation due to interpretations and TCK exclusions, the Maintenance Leads of JSR-195 and JSR-037 have agreed that:
1) all TCK exclusions for both JSRs will go through the JSR-037 process and be handled by the JSR-037 Maintenance Lead, and
2) all spec interpretation issues will be coordinated between the two parties to ensure agreement and synchronization.
10.07.03 Information Module Profile (JSR-195), Final Release 5 ALL RIGHTS RESERVED UNDER JSPA (JAVA SPECIFICATION PARTICIPATION AGREEMENT)
1 Introduction and Background
1.1 Introduction
This document, produced as a result of Java Specification Request (JSR) 195, defines the Information Module Profile (IMP) for the Java 2 Platform, Micro Edition (J2ME™). The goal of this specification is to define the architecture and the associated APIs required to enable an open, third-party, application development environment for information modules, or IMs.
The IMP is designed to operate on top of the Connected Limited Device Configuration (CLDC), which is described in Connected, Limited Device Configuration (JSR-30), Sun Microsystems, Inc. IMP is a strict subset of the Mobile Information Device Profile (MIDP), version 1.0, which is described in Mobile Information Device Profile (JSR-37), Motorola / Sun Microsystems, Inc.
Future versions of IMP could be based on the Mobile Information Device Profile (MIDP), version 2.0, which is described in Mobile Information Device Profile 2.0 (JSR-118), Motorola / Sun Microsystems, Inc., with the purpose to take advantage of the advanced features defined there, such as security and additional communication protocols.
1.2 Background
This specification was produced by the Information Module Profile Expert Group (IMPEG). The following companies, listed in alphabetical order, are members of the IMPEG: