|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.gwt.Uniform
public abstract class Uniform
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
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 |
---|
public Uniform()
Method Detail |
---|
public final void delete(Reference resourceRef, Callback callback)
resourceRef
- The reference of the resource to delete.callback
- The callback invoked upon request completion.public final void delete(java.lang.String resourceUri, Callback callback)
resourceUri
- The URI of the resource to delete.callback
- The callback invoked upon request completion.public final void get(Reference resourceRef, Callback callback)
resourceRef
- The reference of the resource to get.callback
- The callback invoked upon request completion.public final void get(java.lang.String resourceUri, Callback callback)
resourceUri
- The URI of the resource to get.callback
- The callback invoked upon request completion.public final void handle(Request request, Callback callback)
request
- The request to handle.callback
- The callback invoked upon request completion.public abstract void handle(Request request, Response response, Callback callback)
request
- The request to handle.response
- The response to update.callback
- The callback invoked upon request completion.public final void head(Reference resourceRef, Callback callback)
resourceRef
- The reference of the resource to get.callback
- The callback invoked upon request completion.public final void head(java.lang.String resourceUri, Callback callback)
resourceUri
- The URI of the resource to get.callback
- The callback invoked upon request completion.public final void options(Reference resourceRef, Callback callback)
resourceRef
- The reference of the resource to get.callback
- The callback invoked upon request completion.public final void options(java.lang.String resourceUri, Callback callback)
resourceUri
- The URI of the resource to get.callback
- The callback invoked upon request completion.public final void post(Reference resourceRef, Representation entity, Callback callback)
resourceRef
- The reference of the resource to post to.entity
- The entity to post.callback
- The callback invoked upon request completion.public final void post(java.lang.String resourceUri, Representation entity, Callback callback)
resourceUri
- The URI of the resource to post to.entity
- The entity to post.callback
- The callback invoked upon request completion.public final void post(java.lang.String resourceUri, java.lang.String entity, Callback callback)
resourceUri
- The URI of the resource to modify.entity
- The entity to post.callback
- The callback invoked upon request completion.public final void put(Reference resourceRef, Representation entity, Callback callback)
resourceRef
- The reference of the resource to modify.entity
- The entity to put.callback
- The callback invoked upon request completion.public final void put(java.lang.String resourceUri, Representation entity, Callback callback)
resourceUri
- The URI of the resource to modify.entity
- The entity to put.callback
- The callback invoked upon request completion.public final void put(java.lang.String resourceUri, java.lang.String entity, Callback callback)
resourceUri
- The URI of the resource to modify.entity
- The entity to put.callback
- The callback invoked upon request completion.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |