public class DefaultRestQueryService extends Object implements RestQueryService
RestQueryService.| Constructor and Description |
|---|
DefaultRestQueryService(Optional<Map<String,RestQueryExecutor>> queries)
Creates DefaultRestQueryService and registers available queries in map parameter.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
executeQuery(String name,
Map<String,String> params)
Executes query with given name (if exists) and provided parameters.
|
public DefaultRestQueryService(Optional<Map<String,RestQueryExecutor>> queries)
queries - optional map containing available queriespublic Object executeQuery(String name, Map<String,String> params) throws NotFoundException
RestQueryServiceexecuteQuery in interface RestQueryServicename - query identifierparams - query parametersNotFoundException - if query with given name does not exists.Copyright © 2017 SAP SE. All Rights Reserved.