Your SlideShare is downloading. ×
  • Like
The Restlet Framework, Part II
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Now you can save presentations on your phone or tablet

Available for both IPhone and Android

Text the download link to your phone

Standard text messaging rates apply

The Restlet Framework, Part II

  • 828 views
Published

More on restlet, using the restlet-contactservice example system.

More on restlet, using the restlet-contactservice example system.

Published in Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
828
On SlideShare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
12
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. The Restlet Framework, Part II: restlet-contactservice Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University of Hawaii
  • 2. Agenda
    • Restlet Concepts:
      • Operations:
        • GET, PUT, DELETE
      • Representations:
        • XML
    • Restlet-DateService:
      • Download distribution
      • Command line usage
      • build.xml
      • The server-side code
      • The client-side code
      • JUnit tests + Jacoco
      • Building the jars
  • 3. In our last episode
    • Restlet-timeservice
      • Only implements GET
      • Data passed is simple strings
      • Uses only the core restlet jar file.
  • 4. A contact service
    • Server supports addition, deletion, and retrieval of "contacts".
    • Contacts are objects with the following fields:
      • First Name
      • Last Name
      • Info
      • Unique ID
    • The system represents Contacts two ways:
      • As Java classes
      • As XML
  • 5. System structure
    • org.hawaii.contactservice.server
      • Server-specific code (in server jar file)
    • org.hawaii.contactservice.client
      • Client-specific code (in client jar file)
    • org.hawaii.contactservice.common
      • Code for both client and server (in both jars)
  • 6. Playing with the system
    • Using jar files:
      • Run server jar file in one command shell
      • Send/retrieve contact data using client jar file in another shell.
    • Using ant commands:
      • Compile, run unit tests, see coverage, build jar files.
    • Using Eclipse:
      • Inspect code, invoke unit tests.
  • 7. On to the demo.