| 
||||||||||
| 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.tasks.exposition.AbstractTaskResource
fr.cnes.sitools.tasks.exposition.TaskResource
public class TaskResource
Resource to manage single Task
| Field Summary | 
|---|
| Fields inherited from class fr.cnes.sitools.common.SitoolsResource | 
|---|
DEFAULT_MEDIATYPE | 
| Constructor Summary | |
|---|---|
TaskResource()
 | 
|
| Method Summary | |
|---|---|
 org.restlet.representation.Representation | 
deleteTask(org.restlet.representation.Variant variant)
Delete a Task  | 
 void | 
describeDelete(org.restlet.ext.wadl.MethodInfo info)
 | 
 void | 
describeGet(org.restlet.ext.wadl.MethodInfo info)
Describe the GET method.  | 
 void | 
describePut(org.restlet.ext.wadl.MethodInfo info)
 | 
 void | 
doInit()
Initiate the resource  | 
 org.restlet.representation.Representation | 
get(org.restlet.representation.Variant variant)
Get a Task, return it with the specified variant  | 
 org.restlet.representation.Representation | 
put(org.restlet.representation.Representation representation,
    org.restlet.representation.Variant variant)
Modify a task, it can only be set to finish or modify the whole task  | 
 void | 
sitoolsDescribe()
Method implementation mandatory  | 
| Methods inherited from class fr.cnes.sitools.tasks.exposition.AbstractTaskResource | 
|---|
getTaskApplication, getTaskModelFromRepresentation, getUserId | 
| 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 TaskResource()
| Method Detail | 
|---|
public void sitoolsDescribe()
AbstractSitoolsResource
sitoolsDescribe in class AbstractTaskResourcepublic void doInit()
SitoolsResource
doInit in class AbstractTaskResource@Get public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
variant - the Variant needed
public void describeGet(org.restlet.ext.wadl.MethodInfo info)
info - the WADL method information
@Put
public org.restlet.representation.Representation put(org.restlet.representation.Representation representation,
                                                         org.restlet.representation.Variant variant)
representation - The input Taskvariant - the Variant needed
public void describePut(org.restlet.ext.wadl.MethodInfo info)
@Delete public org.restlet.representation.Representation deleteTask(org.restlet.representation.Variant variant)
variant - the Variant needed for the response
public void describeDelete(org.restlet.ext.wadl.MethodInfo info)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||