|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectExtendedWadlServerResource
fr.cnes.sitools.common.resource.AbstractSitoolsResource
fr.cnes.sitools.common.SitoolsResource
fr.cnes.sitools.order.AbstractOrderResource
fr.cnes.sitools.order.UserOrderResource
public final class UserOrderResource
Resource for POSTing new orders
| Field Summary |
|---|
| Fields inherited from class fr.cnes.sitools.common.SitoolsResource |
|---|
DEFAULT_MEDIATYPE |
| Constructor Summary | |
|---|---|
UserOrderResource()
|
|
| Method Summary | |
|---|---|
java.lang.String |
addFile(org.restlet.representation.Representation repr,
java.lang.String urlDest)
Create a file from the following Representation at the given urlDest. urlDest must be relative url using RIAP. |
void |
configure(com.thoughtworks.xstream.XStream xstream,
Response response)
Configure the XStream |
java.lang.String |
copyFile(java.lang.String fileUrl,
java.lang.String destUrl)
Copy a file from fileUrl to destUrl destUrl must be pointing to a folder |
org.restlet.representation.Representation |
deleteOrder(org.restlet.representation.Variant variant)
Delete Order |
void |
describeDelete(org.restlet.ext.wadl.MethodInfo info)
|
void |
describeGet(org.restlet.ext.wadl.MethodInfo info)
|
void |
describePost(org.restlet.ext.wadl.MethodInfo info)
|
org.restlet.representation.Representation |
getFile(java.lang.String fileUrl)
Gets the representation of a File |
org.restlet.representation.Representation |
newOrder(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
Post a new order |
org.restlet.representation.Representation |
retrieveOrder(org.restlet.representation.Variant variant)
Invokes GET method to retrieve Order(s) |
void |
sitoolsDescribe()
Method implementation mandatory |
| Methods inherited from class fr.cnes.sitools.order.AbstractOrderResource |
|---|
doInit, getActionId, getEvent, getObject, getOrderId, getRepresentation, getStore, getUserId, setUserId |
| Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource |
|---|
getMediaType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserOrderResource()
| Method Detail |
|---|
public void sitoolsDescribe()
AbstractSitoolsResource
sitoolsDescribe in class AbstractSitoolsResource
public java.lang.String addFile(org.restlet.representation.Representation repr,
java.lang.String urlDest)
throws SitoolsException
repr - the representationurlDest - the destination url
SitoolsException - if there is an error while creating the file
public java.lang.String copyFile(java.lang.String fileUrl,
java.lang.String destUrl)
throws SitoolsException
fileUrl to destUrl destUrl must be pointing to a folder
fileUrl - the file to copydestUrl - the destination folder url
SitoolsException - if the copy is unsuccessful
public org.restlet.representation.Representation getFile(java.lang.String fileUrl)
throws SitoolsException
fileUrl - the url of the file
SitoolsException - if there is an error while getting the file
@Post
public org.restlet.representation.Representation newOrder(org.restlet.representation.Representation representation,
org.restlet.representation.Variant variant)
representation - Order representationvariant - client preferred media type
public void describePost(org.restlet.ext.wadl.MethodInfo info)
@Get public org.restlet.representation.Representation retrieveOrder(org.restlet.representation.Variant variant)
variant - Variant
public void describeGet(org.restlet.ext.wadl.MethodInfo info)
@Delete public org.restlet.representation.Representation deleteOrder(org.restlet.representation.Variant variant)
variant - client preferred media type
public void describeDelete(org.restlet.ext.wadl.MethodInfo info)
public void configure(com.thoughtworks.xstream.XStream xstream,
Response response)
configure in class SitoolsResourcexstream - the XStream to treatresponse - the response used
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||