Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

Restlet - 02/21/12 by Mind Map: Restlet - 02/21/12
0.0 stars - reviews range from 0 to 5

Restlet - 02/21/12

Overview of REST

Wikipedia is a great resource

Richardson Maturity Model

`Different levels of rest to reach the - Glory of REST

Overview of Reslet

Summary is a lot like Spring

An implementation, not a spec (to contrast jee)

Jackon/JSON auto binding

XML/JAXB binding

Unclear if its automagic like jackson

GWT Support

Cloud deployment

android

google app engine

etc

'Client' support

Java calling other REST resources

Hello World App

Extension based framework

has annotations also, but extension is required

Starts a 'Server'

can do WAR deployment, loses functionality, unsure what functionality

@Get for binding

@Get("json") for content negotiation

Stutter App

YATC (Yet Another Twitter Clone)

Interface defines @Get, @Post etc

I like that idea

Call Start Server

@override createInboundRoot() {, Routers that define URI's and classes to service URI's, router.attach(BASE + "/user/{username}", UserServiceResource.class)

UserServerResource extends ServerResource

static method getAttribute("username")

use New Reference(getReference()) to get the URL to this resource, This works because its extending a class and you register classes to urls, but useful in an abstract sense of 'Reference' if its not just a String

Automatic Jackson mapping, pseudo XML mapping

May be better w/ JAXB or others

Rest Client

Using pojos to call interfaces

ClientResource.create(BASE + "/users", UserListManager.class), Rest interface to call .addUser()