fr.cnes.sitools.resources.order.cart.common
Class CartOrderResourceFacade

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
                      extended by fr.cnes.sitools.resources.order.cart.common.CartOrderResourceFacade
All Implemented Interfaces:
IResource, IOrderResource

public class CartOrderResourceFacade
extends OrderResourceFacade

Facade for OrderResource

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
CartOrderResourceFacade()
           
 
Method Summary
 void describePost(org.restlet.ext.wadl.MethodInfo info)
          Description WADL de la methode POST
 CartSelections getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
           
 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(org.restlet.representation.Variant variant)
          process the body and save the request entity Representation
 void sitoolsDescribe()
          Description de la ressource
 
Methods inherited from class fr.cnes.sitools.resources.order.OrderResourceFacade
processBody
 
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

CartOrderResourceFacade

public CartOrderResourceFacade()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description de la ressource

Overrides:
sitoolsDescribe in class OrderResourceFacade

describePost

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

Overrides:
describePost in class OrderResourceFacade
Parameters:
info - The method description to update.

orderPost

@Post
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
Overrides:
orderPost in class OrderResourceFacade
Parameters:
represent - the Representation entity
variant - The Variant needed
Returns:
a representation

orderGet

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

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

processBody

public void processBody(org.restlet.representation.Variant variant)
process the body and save the request entity Representation


getObject

public final CartSelections getObject(org.restlet.representation.Representation representation,
                                      org.restlet.representation.Variant variant)


Copyright © 2010-2013 CNES. All Rights Reserved.