org.restlet.gwt
Class Uniform

java.lang.Object
  extended by org.restlet.gwt.Uniform
Direct Known Subclasses:
Restlet

public abstract class Uniform
extends java.lang.Object

Base class exposing the uniform REST interface. "The central feature that distinguishes the REST architectural style from other network-based styles is its emphasis on a uniform interface between components. By applying the software engineering principle of generality to the component interface, the overall system architecture is simplified and the visibility of interactions is improved. Implementations are decoupled from the services they provide, which encourages independent evolvability." Roy T. Fielding

Author:
Jerome Louvel
See Also:
Source dissertation

Constructor Summary
Uniform()
           
 
Method Summary
 void delete(Reference resourceRef, Callback callback)
          Deletes the identified resource.
 void delete(java.lang.String resourceUri, Callback callback)
          Deletes the identified resource.
 void get(Reference resourceRef, Callback callback)
          Gets the identified resource.
 void get(java.lang.String resourceUri, Callback callback)
          Gets the identified resource.
 void handle(Request request, Callback callback)
          Handles a call.
abstract  void handle(Request request, Response response, Callback callback)
          Handles a call.
 void head(Reference resourceRef, Callback callback)
          Gets the identified resource without its representation's content.
 void head(java.lang.String resourceUri, Callback callback)
          Gets the identified resource without its representation's content.
 void options(Reference resourceRef, Callback callback)
          Gets the options for the identified resource.
 void options(java.lang.String resourceUri, Callback callback)
          Gets the options for the identified resource.
 void post(Reference resourceRef, Representation entity, Callback callback)
          Posts a representation to the identified resource.
 void post(java.lang.String resourceUri, Representation entity, Callback callback)
          Posts a representation to the identified resource.
 void post(java.lang.String resourceUri, java.lang.String entity, Callback callback)
          Posts a representation to the identified resource.
 void put(Reference resourceRef, Representation entity, Callback callback)
          Puts a representation in the identified resource.
 void put(java.lang.String resourceUri, Representation entity, Callback callback)
          Puts a representation in the identified resource.
 void put(java.lang.String resourceUri, java.lang.String entity, Callback callback)
          Puts a representation in the identified resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Uniform

public Uniform()
Method Detail

delete

public final void delete(Reference resourceRef,
                         Callback callback)
Deletes the identified resource.

Parameters:
resourceRef - The reference of the resource to delete.
callback - The callback invoked upon request completion.

delete

public final void delete(java.lang.String resourceUri,
                         Callback callback)
Deletes the identified resource.

Parameters:
resourceUri - The URI of the resource to delete.
callback - The callback invoked upon request completion.

get

public final void get(Reference resourceRef,
                      Callback callback)
Gets the identified resource.

Parameters:
resourceRef - The reference of the resource to get.
callback - The callback invoked upon request completion.

get

public final void get(java.lang.String resourceUri,
                      Callback callback)
Gets the identified resource.

Parameters:
resourceUri - The URI of the resource to get.
callback - The callback invoked upon request completion.

handle

public final void handle(Request request,
                         Callback callback)
Handles a call.

Parameters:
request - The request to handle.
callback - The callback invoked upon request completion.

handle

public abstract void handle(Request request,
                            Response response,
                            Callback callback)
Handles a call.

Parameters:
request - The request to handle.
response - The response to update.
callback - The callback invoked upon request completion.

head

public final void head(Reference resourceRef,
                       Callback callback)
Gets the identified resource without its representation's content.

Parameters:
resourceRef - The reference of the resource to get.
callback - The callback invoked upon request completion.

head

public final void head(java.lang.String resourceUri,
                       Callback callback)
Gets the identified resource without its representation's content.

Parameters:
resourceUri - The URI of the resource to get.
callback - The callback invoked upon request completion.

options

public final void options(Reference resourceRef,
                          Callback callback)
Gets the options for the identified resource.

Parameters:
resourceRef - The reference of the resource to get.
callback - The callback invoked upon request completion.

options

public final void options(java.lang.String resourceUri,
                          Callback callback)
Gets the options for the identified resource.

Parameters:
resourceUri - The URI of the resource to get.
callback - The callback invoked upon request completion.

post

public final void post(Reference resourceRef,
                       Representation entity,
                       Callback callback)
Posts a representation to the identified resource.

Parameters:
resourceRef - The reference of the resource to post to.
entity - The entity to post.
callback - The callback invoked upon request completion.

post

public final void post(java.lang.String resourceUri,
                       Representation entity,
                       Callback callback)
Posts a representation to the identified resource.

Parameters:
resourceUri - The URI of the resource to post to.
entity - The entity to post.
callback - The callback invoked upon request completion.

post

public final void post(java.lang.String resourceUri,
                       java.lang.String entity,
                       Callback callback)
Posts a representation to the identified resource.

Parameters:
resourceUri - The URI of the resource to modify.
entity - The entity to post.
callback - The callback invoked upon request completion.

put

public final void put(Reference resourceRef,
                      Representation entity,
                      Callback callback)
Puts a representation in the identified resource.

Parameters:
resourceRef - The reference of the resource to modify.
entity - The entity to put.
callback - The callback invoked upon request completion.

put

public final void put(java.lang.String resourceUri,
                      Representation entity,
                      Callback callback)
Puts a representation in the identified resource.

Parameters:
resourceUri - The URI of the resource to modify.
entity - The entity to put.
callback - The callback invoked upon request completion.

put

public final void put(java.lang.String resourceUri,
                      java.lang.String entity,
                      Callback callback)
Puts a representation in the identified resource.

Parameters:
resourceUri - The URI of the resource to modify.
entity - The entity to put.
callback - The callback invoked upon request completion.


Copyright © 2005-2008 Noelios Technologies.