fr.cnes.sitools.dataset.opensearch
Class OpenSearchCollectionResource

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.opensearch.AbstractSearchResource
                  extended by fr.cnes.sitools.dataset.opensearch.OpenSearchCollectionResource

public class OpenSearchCollectionResource
extends AbstractSearchResource

Class Resource for managing Project Collection (GET, POST)

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
OpenSearchCollectionResource()
           
 
Method Summary
 org.restlet.representation.Representation newOpensearch(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing OpenSearch
 org.restlet.representation.Representation retrieve(org.restlet.representation.Variant variant)
          get all OpenSearch configuration
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.dataset.opensearch.AbstractSearchResource
doInit, getDatasetId, getIndexName, getOpenSearchApplication, getRepresentation, getStore, getStoreFeed, registerObserver, setIndexName, 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

OpenSearchCollectionResource

public OpenSearchCollectionResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

newOpensearch

@Post
public org.restlet.representation.Representation newOpensearch(org.restlet.representation.Representation representation,
                                                                    org.restlet.representation.Variant variant)
Update / Validate existing OpenSearch

Parameters:
representation - OpenSearch configuration
variant - client preferred media type
Returns:
Representation

retrieve

@Get
public org.restlet.representation.Representation retrieve(org.restlet.representation.Variant variant)
get all OpenSearch configuration

Parameters:
variant - client preferred media type
Returns:
Representation


Copyright © 2010-2013 CNES. All Rights Reserved.