fr.cnes.sitools.tasks.exposition
Class AbstractTaskResource

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
Direct Known Subclasses:
TaskCollectionResource, TaskRepresentResource, TaskResource

public abstract class AbstractTaskResource
extends SitoolsResource

Abstract Resource to handle Tasks

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractTaskResource()
           
 
Method Summary
 void doInit()
          Initiate the resource
 TaskApplication getTaskApplication()
          Gets the application value
 TaskModel getTaskModelFromRepresentation(org.restlet.representation.Representation representation)
          Get the TaskModel object from the representation sent
 java.lang.String getUserId()
          Gets the userId value
 void sitoolsDescribe()
          Method implementation mandatory
 
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

AbstractTaskResource

public AbstractTaskResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

doInit

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


getTaskModelFromRepresentation

public final TaskModel getTaskModelFromRepresentation(org.restlet.representation.Representation representation)
                                               throws java.io.IOException
Get the TaskModel object from the representation sent

Parameters:
representation - the representation sent (POST or PUT)
Returns:
the corresponding TaskModel
Throws:
java.io.IOException - if there are some errors while reading the given Representation

getTaskApplication

public TaskApplication getTaskApplication()
Gets the application value

Returns:
the application

getUserId

public java.lang.String getUserId()
Gets the userId value

Returns:
the userId


Copyright © 2010-2013 CNES. All Rights Reserved.