fr.cnes.sitools.resources.order
Class OrderResourceFacade

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.common.resource.SitoolsParameterizedResource
                  extended by fr.cnes.sitools.resources.order.OrderResourceFacade
All Implemented Interfaces:
IResource, IOrderResource
Direct Known Subclasses:
CartOrderResourceFacade

public class OrderResourceFacade
extends SitoolsParameterizedResource
implements IOrderResource

Facade for OrderResource

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
OrderResourceFacade()
           
 
Method Summary
 void describePost(org.restlet.ext.wadl.MethodInfo info)
          Description WADL de la methode POST
 org.restlet.representation.Representation orderGet(org.restlet.representation.Variant variant)
          Create the order
 org.restlet.representation.Representation orderPost(org.restlet.representation.Representation represent, org.restlet.representation.Variant variant)
          Create the order
 void processBody()
          process the body and save the request entity Representation
 void sitoolsDescribe()
          Description de la ressource
 
Methods inherited from class fr.cnes.sitools.common.resource.SitoolsParameterizedResource
addStandardResponseInfo, doInit, getId, getModel, getOverrideParameterValue, getOverrideParameterValueObject, getOverrideParams, getParameterValue, getParent, setId, setModel, setParent
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, 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
 
Methods inherited from interface fr.cnes.sitools.common.model.IResource
getDescription, getName
 

Constructor Detail

OrderResourceFacade

public OrderResourceFacade()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description de la ressource

Overrides:
sitoolsDescribe in class SitoolsParameterizedResource

describePost

public void describePost(org.restlet.ext.wadl.MethodInfo info)
Description WADL de la methode POST

Parameters:
info - The method description to update.

orderPost

public org.restlet.representation.Representation orderPost(org.restlet.representation.Representation represent,
                                                           org.restlet.representation.Variant variant)
Create the order

Specified by:
orderPost in interface IOrderResource
Parameters:
represent - the Representation entity
variant - The Variant needed
Returns:
a representation

orderGet

public org.restlet.representation.Representation orderGet(org.restlet.representation.Variant variant)
Create the order

Specified by:
orderGet in interface IOrderResource
Parameters:
variant - The Variant needed
Returns:
a representation

processBody

public void processBody()
process the body and save the request entity Representation



Copyright © 2010-2013 CNES. All Rights Reserved.