18. The Generic Connection Framework

ALL network access in MIDP devices works through the Generic Connection Framework (GCF), a simple API that makes quick work of many types of communication. The fundamental idea of GCF is very simple. Your application supplies a connection string, and GCF hands back the corresponding input and output streams.

The MIDP 2.0 specification says that devices must support HyperText Transfer Protocol (HTTP) and secure HTTP (HTTPS) connections, which means your application has two powerful guarantees for connectivity to the awesome power of the Internet.

This chapter describes the simple premise of GCF and provides details on HTTP and HTTPS networking. It also provides some details on optional connection types. Later ...

Get Kicking Butt with MIDP and MSA: Creating Great Mobile Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.