fr.cnes.sitools.dataset.opensearch
Class OpenSearchResource

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.OpenSearchResource

public final class OpenSearchResource
extends AbstractSearchResource

OpenSearch CRUD resource

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
OpenSearchResource()
           
 
Method Summary
 org.restlet.representation.Representation deleteOpensearch(org.restlet.representation.Variant variant)
          Delete OpenSearch
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
          Describe the DELETE HTTP command
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          Describe the GET HTTP command
 void describePost(org.restlet.ext.wadl.MethodInfo info)
          Describe the POST HTTP command
 void describePut(org.restlet.ext.wadl.MethodInfo info)
          Describe the PUT HTTP command
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
           
 org.restlet.representation.Representation newOpensearch(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Create / attach OpenSearch to dataset
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation updateOpensearch(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing OpenSearchs
 
Methods inherited from class fr.cnes.sitools.dataset.opensearch.AbstractSearchResource
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
 
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

OpenSearchResource

public OpenSearchResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

doInit

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

Overrides:
doInit in class AbstractSearchResource

newOpensearch

@Post
public org.restlet.representation.Representation newOpensearch(org.restlet.representation.Representation representation,
                                                                    org.restlet.representation.Variant variant)
Create / attach OpenSearch to dataset

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

describePost

public void describePost(org.restlet.ext.wadl.MethodInfo info)
Describe the POST HTTP command

Parameters:
info - the method WADL info

get

@Get
public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)
Describe the GET HTTP command

Parameters:
info - the method WADL info

updateOpensearch

@Put
public org.restlet.representation.Representation updateOpensearch(org.restlet.representation.Representation representation,
                                                                      org.restlet.representation.Variant variant)
Update / Validate existing OpenSearchs

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 HTTP command

Parameters:
info - the method WADL info

deleteOpensearch

@Delete
public org.restlet.representation.Representation deleteOpensearch(org.restlet.representation.Variant variant)
Delete OpenSearch

Parameters:
variant - client preferred media type
Returns:
Representation

describeDelete

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

Parameters:
info - the method WADL info


Copyright © 2010-2013 CNES. All Rights Reserved.