Web Design - Publish.com
Publish.com Ziff-Davis Enterprise  
SEARCH · ONLINE MEDIA · MOBILE · WEB DESIGN · GRAPHICS TOOLS · PRINTING · PHOTO · TIPS · OPINIONS
Home arrow Web Design arrow Java Development Gets Web 2.0 Treatment
Java Development Gets Web 2.0 Treatment
By Darryl K. Taft

Rate This Article:
Add This Article To:
The Restlet open-source project delivers Java support for the Representational State Transfer architectural style.

Addressing the issue of bringing Java development more in line with the needs of Web 2.0 developers, an open-source project has emerged to deliver Java support for the Representational State Transfer architectural style.

Jerome Louvel, a developer based in Levallois-Perret, France, has established a project known as the Restlet project to create a REST framework on top of the Java Servlet API.

Louvel, who serves as an independent consultant specializing in Java development and business process integration as the founder of Noelios Consulting, said his mission with the Restlet project is to "bring the simplicity and efficiency of the REST architectural style to Java developers."

However, Louvel said he does not want to revive the debate of SOAP (Simple Object Application Protocol) versus REST, as it "has been discussed too many times already."

The Servlet API has been around since 1998 and has been widely adopted as a way to generate dynamic content on HTTP servers.

The Servlet API "basically tries to represent a HTTP request/response cycle in an object-oriented model," Louvel said in a paper describing his Restlet project. "Along with Java Server Pages, its sister specification, it [Servlet API] became part of a larger effort to bring Java technologies inside companies."

However, this may not be the best approach for Web 2.0 development, Louvel said. His desire to support REST drove his effort to create Restlet, he said.

"While powerful for complex centralized models, the object-oriented paradigm isn't the best suited for Web development," Louvel said. "Java developers need to realize this and start thinking more 'REST-fully' when developing new Web services or AJAX-based Web clients. The Restlet project is providing a simple yet solid foundation that can get you started right away on the Web 2.0."

Web 2.0 fails to meaningfully define the evolution of the Internet, claims John Pallatto. Click here to read more.

Yet, Louvel noted that some developers have concerns about whether Restlet has advantages over other Web 2.0 development frameworks such as Ruby on Rails and Struts.

Essentially, the motivation for the Restlet effort came when "I recently started the development of a Web site," Louvel said. "I wanted it to comply with the REST architectural style as much as possible. After many researches, I noted the lack of a REST framework in Java," he said.

So Louvel said he developed his own REST framework on top of the Servlet API. "I was able to develop the first Restlet connector, an HTTP server connector, directly issuing REST uniform calls," he said.

In addition, Louvel said he wanted "to get rid of the unnatural separation between the client-side and server-side view of the Web in Java."

Louvel noted that "in today's networked environment, we shouldn't have to make such differences: Anybody should be able to act, at the same time, as a Web client and as a Web server. In REST, every component can have as many client and server connectors as useful, so I simply developed a client HTTP connector based on the HttpURLConnection class."

Louvel said he then decided to break the Restlet project into two parts. The first is a generic set of interfaces known as the Restlet API and some helper classes to register a Restlet implementation, he said. The second part of the project is a reference implementation of the Restlet API called the NRE (Noelios Restlet Engine), which includes "an HTTP server connector; HTTP, JDBC [Java database Connector and SMTP [Simple Mail Transfer Protocol] client connectors; a set of representations; and a DirectoryRestlet able to serve static files from a tree of directories with automatic content negotiation based on file extensions," Louvel said.

The Restlet API supports all REST concepts, including resource, representation, data, connector and components, Louvel said.

Still in beta, the latest release of Restlet is Version 0.18 and is available for download at www.restlet.org/downloads/restlet-0.18b.zip.

The Restlet API and Noelios Restlet Engine are distributed under CDDL (Common Development and Distribution License).

And the Restlet project dependencies include J2SE 5.0, also known as Java 5; Jetty 5.1.5 or 6.0 beta; FreeMarker 2.3; and JavaMail 1.3.

Check out eWEEK.com's for the latest news, reviews and analysis in programming environments and developer tools.


Discuss Java Development Gets Web 2.0 Treatment
 
>>> Be the FIRST to comment on this article!
 

 
 
>>> More Web Design Articles          >>> More By Darryl K. Taft
 


Buyer's Guide
Explore hundreds of products in our Publish.com Buyer's Guide.
Web design
Content management
Graphics Software
Streaming Media
Video
Digital photography
Stock photography
Web development
View all >

ADVERTISEMENT


FREE ZIFF DAVIS ENTERPRISE ESEMINARS AT ESEMINARSLIVE.COM
  • Dec 10, 4 p.m. ET
    Eliminate the Drawbacks of Traditional Backup/Replication for Linux
    with Michael Krieger. Sponsored by InMage
  • Dec 11, 1 p.m. ET
    Data Modeling and Metadata Management with PowerDesigner
    with Joel Shore. Sponsored by Sybase
  • Dec 12, 12 p.m. ET
    Closing the IT Business Gap: Monitoring the End-User Experience
    with Michael Krieger. Sponsored by Compuware
  • Dec 12, 2 p.m. ET
    Enabling IT Consolidation
    with Michael Krieger. Sponsored by Riverbed & VMWare
  • VTS
    Join us on Dec. 19 for Discovering Value in Stored Data & Reducing Business Risk. Join this interactive day-long event to learn how your enterprise can cost-effectively manage stored data while keeping it secure, compliant and accessible. Disorganized storage can prevent your enterprise from extracting the maximum value from information assets. Learn how to organize enterprise data so vital information assets can help your business thrive. Explore policies, strategies and tactics from creation through deletion. Attend live or on-demand with complimentary registration!
    FEATURED CONTENT
    IT LINK DISCUSSION - MIGRATION
    A Windows Vista® migration introduces new and unique challenges to any IT organization. It's important to understand early on whether your systems, hardware, applications and end users are ready for the transition.
    Join the discussion today!



    .NAME Charging For Whois
    Whois has always been a free service, but the .NAME registry is trying to change that.
    Read More >>

    Sponsored by Ziff Davis Enterprise Group

    NEW FROM ZIFF DAVIS ENTERPRISE


    Delivering the latest technology news & reviews straight to your handheld device

    Now you can get the latest technology news & reviews from the trusted editors of eWEEK.com on your handheld device
    mobile.eWEEK.com

     


    RSS 2.0 Feed


    internet
    rss graphic Publish.com
    rss graphic Google Watch

    Video Interviews


    streaming video
    Designing Apps for Usability
    DevSource interviews usability pundit Dr. Jakob Nielsen on everything from the proper attitude for programmers to the importance of prototyping in design to the reasons why PDF, Flash and local search engines can hurt more than they help.
    ADVERTISEMENT