The GCFClient sample demonstrates the Generic Connection Framework (GCF) functionality.
Running the GCFClient sample consists of using the IDE to open the GCFClient project, starting the application, entering a URL (such as http://www.sun.com) in the URL field, and then clicking the Get Content button on the page to display the contents of the web page.
Before performing the following procedure, the Java Card 3 Development Kit, Connected Editon must be downloaded and installed on your development system.
The GCFClient project is located under the JC_CONNECTED_HOME\samples\web folder.
Note - Refer to the Java Card 3 Platform Development Kit User’s Guide for additional details including screen captures.
The IDE compiles, builds, and runs the sample. When the sample runs the IDE launches the default browser and displays the GCF Client Page.
The application establishes an http connection with the website and displays content from the web site in the browser.
Note - The sample works correctly only when a URL field contains a URL in a full form (such as http://www.sun.com). The sample does not work when the URL is provided in an abbreviated form (such as www.sun.com).