public class SearchResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private ProductSearcher |
productSearcher |
private ResponseService |
responseService |
Constructor and Description |
---|
SearchResource(ProductSearcher productSearcher,
ResponseService responseService) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
searchProducts(java.lang.String dsName,
java.lang.String shopGUID,
SearchParams params)
Performs a search on the index (this POST call is idempotent)
Uses an idempotent POST call as suggested in the RESTful Web Services
Cookbook.
|
private final ProductSearcher productSearcher
private final ResponseService responseService
@Inject public SearchResource(ProductSearcher productSearcher, ResponseService responseService)
public javax.ws.rs.core.Response searchProducts(java.lang.String dsName, java.lang.String shopGUID, SearchParams params)
dsName
- is the datasource name (i.e. epages6 Storename).shopGUID
- is the GUID identifier of a shop.params
- are the search params.