fr.cnes.sitools.dataset.opensearch
Class OpenSearch

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

public final class OpenSearch
extends SitoolsResource

Resource attached to a DataSetApplication. The context allows to retrieve the DataSetApplication. Returns the results of an OpenSearch

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
OpenSearch()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          Describe the GET method
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
          Returns the result of a SolR request Can be called with /search to return the result of a search Can be called with /suggest to return the result of a suggest request suggest request can be returned in 2 different JSON JSON for user-client JSON for browser ( OpenSearch standard compliant)
 void sitoolsDescribe()
          Method implementation mandatory
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, 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
 

Constructor Detail

OpenSearch

public OpenSearch()
Method Detail

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)
Returns the result of a SolR request Can be called with /search to return the result of a search Can be called with /suggest to return the result of a suggest request suggest request can be returned in 2 different JSON JSON for user-client JSON for browser ( OpenSearch standard compliant)

Parameters:
variant - : The variant needed
Returns:
Representation representation returned

describeGet

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

Parameters:
info - the WADL information


Copyright © 2010-2013 CNES. All Rights Reserved.