Java Reference
In-Depth Information
Figure 12-2. Specifying MIDlet permissions
Wrapping Up
Unlike other configurations of Java, Java ME provides a unified approach to data commu-
nication through the GCF. The GCF provides a factory class for connections, called
Connector , that lets you create subclasses of the Connection interface based on the URL
you pass to Connector.open . The URL specifies not only the destination of the connection,
but also the protocol type and port, letting you create a wide variety of different connec-
tions. However, the actual connection types (the application-layer protocols and
transport-layer protocols) are limited by the platform on which your application is exe-
cuting; some protocols such as HTTP are available on nearly the entire range of Java ME
platforms including both the CDC and the CLDC, while other protocols such as datagram
protocols or low-level streamed socket protocols may not be.
 
Search WWH ::




Custom Search