fr.cnes.sitools.userstorage
Class UserStorageStatusResource

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.userstorage.UserStorageStatusResource

public class UserStorageStatusResource
extends SitoolsResource

Gets the status of a UserStorage for a particular User

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
UserStorageStatusResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Get a representation of the object
 org.restlet.representation.Representation getStatus(org.restlet.representation.Variant variant)
          Gets a userstorage Representation without the userstoragePath attribute
 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, 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

UserStorageStatusResource

public UserStorageStatusResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

getStatus

@Get
public org.restlet.representation.Representation getStatus(org.restlet.representation.Variant variant)
Gets a userstorage Representation without the userstoragePath attribute

Parameters:
variant - The Variant needed
Returns:
a Representation of the userstorage with the asked variant

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)

getRepresentation

public final org.restlet.representation.Representation getRepresentation(Response response,
                                                                         org.restlet.data.MediaType media)
Get a representation of the object

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - the response to treat
media - the media to use
Returns:
Representation


Copyright © 2010-2013 CNES. All Rights Reserved.