fr.cnes.sitools.dataset.services
Class ServerServiceResource

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.dataset.services.AbstractServiceResource
                  extended by fr.cnes.sitools.dataset.services.AbstractServerServiceResource
                      extended by fr.cnes.sitools.dataset.services.ServerServiceResource

public class ServerServiceResource
extends AbstractServerServiceResource

Resource to manage a guiservice on a specific parent id

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
ServerServiceResource()
           
 
Method Summary
 org.restlet.representation.Representation deleteServerService(org.restlet.representation.Variant variant)
          Delete Converter
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
          Describe the Delete command
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void describePut(org.restlet.ext.wadl.MethodInfo info)
          Describe the Put command
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
          Retrieve an existing Server service
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation updateServerService(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing Server service
 
Methods inherited from class fr.cnes.sitools.dataset.services.AbstractServerServiceResource
getObjectResourceModel, getRepresentation, getResourcesUrl, handleResourceModelCall
 
Methods inherited from class fr.cnes.sitools.dataset.services.AbstractServiceResource
getObject, getParentId, getServiceModel, getStore, registerObserver, serviceExists, setParentId, setStore, unregisterObserver
 
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

ServerServiceResource

public ServerServiceResource()
Method Detail

doInit

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

Overrides:
doInit in class AbstractServiceResource

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

get

@Get
public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
Retrieve an existing Server service

Parameters:
variant - client preferred media type
Returns:
Representation the server service found

describeGet

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

updateServerService

@Put
public org.restlet.representation.Representation updateServerService(org.restlet.representation.Representation representation,
                                                                         org.restlet.representation.Variant variant)
Update / Validate existing Server service

Parameters:
representation - the representation parameter
variant - client preferred media type
Returns:
Representation

describePut

public void describePut(org.restlet.ext.wadl.MethodInfo info)
Describe the Put command

Parameters:
info - the info sent

deleteServerService

@Delete
public org.restlet.representation.Representation deleteServerService(org.restlet.representation.Variant variant)
Delete Converter

Parameters:
variant - client preferred media type
Returns:
Representation

describeDelete

public void describeDelete(org.restlet.ext.wadl.MethodInfo info)
Describe the Delete command

Parameters:
info - the info sent


Copyright © 2010-2013 CNES. All Rights Reserved.