Javax.Microedition Jar
MID ProfileUse is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms. Applications+MIDP+Toute+application+MIDP+doit+d%C3%A9river+d%E2%80%99une+classe+sp%C3%A9ciale%3A+MIDlet..jpg' alt='Javax Servlet Package' title='Javax Servlet Package' />Javax. Package Samples javax. MIDletVersion 8. 0 MIDlet1 Opera Mini, i. Browser MIDletDescription Opera Mini MIDletIcon i. MIDletInfoURL http MIDletInstall. Java Java SE, EE, ME javax microedition lcdui Canvas. Experts Exchange Questions MIDP preverification snag javalang. NoClassDefFoundErrorjavaxmicroeditionlcdui. Package javax. microedition. Description The MIDlet package defines Mobile Information Device Profile applications and the interactions between the. Package javax. microedition. Description MID Profile includes networking support based on the Generic Connection framework from the Connected, Limited Device. This site uses cookies to store your preferences for sitespecific language and display options. OK. J2ME Tutorial, Part 4 Multimedia and MIDP 2. Blog. and is distributed as an optional jar file in the J2ME wireless. Item. What Is JavaxCopyright 2. Sun Microsystems, Inc. Motorola, Inc. All rights reserved. Package javax. microedition. Classes for the Generic Connection framework. See Description. Interface Summary. Comm. Connection. This interface defines a logical serial port connection. Connection. This is the most basic type of generic connection. Content. Connection. This interface defines the stream connection over which. Datagram. This class defines an abstract interface for datagram packets. Datagram. Connection. This interface defines the capabilities that a datagram connection. Http. Connection. This interface defines the necessary methods and constants. HTTP connection. Https. Connection. This interface defines the necessary methods. Input. Connection. This interface defines the capabilities that an input stream. Output. Connection. This interface defines the capabilities that an output. Secure. Connection. This interface defines the secure socket stream connection. Security. Info. This interface defines methods. Server. Socket. Connection. This interface defines the server socket stream connection. Socket. Connection. This interface defines the socket stream connection. Stream. Connection. This interface defines the capabilities that a stream connection. Stream. Connection. Notifier. This interface defines the capabilities that a connection notifier. UDPDatagram. Connection. This interface defines a datagram connection which knows. Class Summary. Connector. This class is factory for creating new Connection objects. Push. Registry. The Push. Registry maintains a list of inbound. Exception Summary. Connection. Not. Found. Exception. This class is used to signal that a connection target. Package javax. microedition. Description. MID Profile includes networking support based on the. Generic Connection framework from the Connected. Limited Device Configuration. HTTP Networking. In addition to the javax. Connected Limited Device Configuration. Mobile Information Device Profile includes the following. HTTP access. An Http. Connection is returned. Connector. open when an http. Http. Connection. The MIDP extends the connectivity support provided by the Connected. Limited Device Configuration CLDC with specific functionality for the. Generic. Connection framework. The MIDP supports a subset of. HTTP protocol, which can be implemented using both IP protocols. TCPIP and non IP protocols such as WAP and i Mode, utilizing. HTTP servers on the Internet. The Generic. Connection framework is used to support client server. Using only the protocols specified by the MIDP will. MIDs. MIDP implementations. MUST provide support for accessing HTTP 1. There are wide variations in wireless networks. It is the joint. responsibility of the device and the wireless network. It may require a gateway. Usbprint Sys Windows 98 Microsoft. Internet. The client application and the Internet server. MUST NOT need to be required to know either that non IP networks are being. While the client and server. MAY both take advantage of such knowledge to optimize their. MUST NOT be required to do so. For example, a MID MAY have no in device support for the Internet. Protocol IP. In this case, it would utilize a gateway to access. Internet, and the gateway would be responsible for some services. DNS name resolution for Internet URLs. The device and network. HTTP Network Connection. The Generic. Connection framework from the CLDC provides the base. The interface Http. Connection provides. HTTP specific functions. The interface MUST support. Each device implementing the MIDP MUST support opening connections using. URL schemes RFC2. Uniform Resource Identifiers URI. Generic Syntax. httpas defined by RFC2. Hypertext Transfer Protocol. HTTP1. 1. Each device implementing the MIDP MUST support the full specification of. RFC2. 61. 6 HEAD, GET and POST requests. The implementation MUST also support. URIs. The implementation MUST pass all request headers supplied by the. The ordering of request and response headers MAY be changed. While the. headers may be transformed in transit, they MUST be reconstructed as. Any transformations MUST be. The HTTP implementation. The application itself is. Connections may be implemented with any suitable protocol providing. HTTP headers and data. RFC2. TCP streams as the only required transport. HTTP Request Headers. The HTTP 1. 1 specification provides a rich set of request and response. In the MIDP. the application is responsible for selection and processing of request and. Only the User Agent header is described. Any other header that is mutually agreed upon with the server. User Agent and Accept Language Request Headers. For the MIDP, a simple User Agent field may be used to identify. As specified by RFC2. The application is responsible for formatting and requesting that the. User Agent field be included in HTTP requests via the. Request. Property method in the interface. Http. Connection. It can supply any. Applications are not required to be loaded onto the device using HTTP. But if they are, then the User Agent request header should be. JAR file onto the device. This will allow the server to provide the most. The user agent and accept language fields SHOULD contain the following. System. get. Property. If multiple values are present they. System Properties Used for User Agent and Accept Language Request Headers. System Property. Descriptionmicroedition. A blank Unicode U0. J2. ME profiles that. For MIDP 2. 0 devices, this property MUST contain. MIDP 2. 0. microedition. The J2. ME configuration supported by this device. For example. CLDC 1. The name of the current locale on this device. For example. en US. HTTP Request Header Example. User Agent ProfileMIDP 2. ConfigurationCLDC 1. Accept Language en USStream. Connection Behavior. All MIDP Stream. Connections have one underlying. Input. Stream and one Output. Stream. Opening a. Data. Input. Stream counts as opening an Input. Stream. and opening a Data. Output. Stream counts as opening an. Output. Stream. Trying to open another Input. Stream. or another Output. Stream from a Stream. Connections. causes an IOException. Trying to open Input. Stream. or Output. Stream after they have been closed causes an. IOException. After calling the close method, regardless of open streams. IOExceptions. for those methods that are declared to throw IOExceptions. For the methods that do not throw exceptions, unknown results may be. The methods of Stream. Connections are not synchronized. The only stream method that can be called safely in another thread is. When close is invoked on a stream that is. IO method MUST throw an. Interrupted. IOException. In the above case implementations. SHOULD try to throw the exception in a timely manner. When all open streams. Stream. Connections is closed. IO operations MUST be interrupted in a timely manner. Secure Networking. Since the MIDP 2. WWW network services. Secure interfaces are provided. HTTPS and SSLTLS protocol access over the IP network. Refer to the. package documentation of javax. An. Https. Connection is returned from Connector. A Secure. Connection is returned from Connector. Https. Connectionjavax. Secure. Connectionjavax. Security. Infojavax. Certificatejavax. Certificate. Exception. Low Level IP Networking. Since the MIDP 2. MIDP specification also includes optional. TCPIP sockets and UDPIP datagrams. For each of. the following schemes, a host is specified for an outbound connection.