fr.cnes.sitools.tasks.exposition
Class TaskRepresentResource

java.lang.Object
  extended by ExtendedWadlServerResource
      extended by fr.cnes.sitools.common.resource.AbstractSitoolsResource
          extended by fr.cnes.sitools.common.SitoolsResource
              extended by fr.cnes.sitools.tasks.exposition.AbstractTaskResource
                  extended by fr.cnes.sitools.tasks.exposition.TaskRepresentResource

public class TaskRepresentResource
extends AbstractTaskResource

Resource to return the result of a Task

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
TaskRepresentResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          Describe the GET method.
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation getResult(org.restlet.representation.Variant variant)
          GET the list of tasks assigned to a SVA
 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.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace
 
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

TaskRepresentResource

public TaskRepresentResource()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: AbstractSitoolsResource
Method implementation mandatory

Overrides:
sitoolsDescribe in class AbstractTaskResource

doInit

public void doInit()
Description copied from class: SitoolsResource
Initiate the resource

Overrides:
doInit in class AbstractTaskResource

getResult

@Get
public org.restlet.representation.Representation getResult(org.restlet.representation.Variant variant)
GET the list of tasks assigned to a SVA

Parameters:
variant - the variant sent by the request
Returns:
a representation of all tasks treated by the SVA

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)
Describe the GET method.

Parameters:
info - the WADL method information


Copyright © 2010-2013 CNES. All Rights Reserved.