public class ROAQueryService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_NAME_DATA_CONSUMER_ID |
static String |
PARAM_NAME_PROCEDURE_ID |
static String |
PARAM_NAME_QUERY_ID |
static String |
QUERY_DATASET_REQUEST |
| Constructor and Description |
|---|
ROAQueryService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
processDataSetRequest(Map<String,String[]> parameterMap,
OutputStream responseStream)
Processes the incoming parameter map as a dataset request parameter map and performs a data consumer request.
|
static void |
processRequest(Map<String,String[]> parameterMap,
OutputStream responseStream)
Query the underlying database for the provided parameters and
respond using the TOOP DSD RegRep response specification.
|
public static final String QUERY_DATASET_REQUEST
public static final String PARAM_NAME_DATA_CONSUMER_ID
public static final String PARAM_NAME_QUERY_ID
public static final String PARAM_NAME_PROCEDURE_ID
public static void processRequest(@Nonnull @Nonempty Map<String,String[]> parameterMap, @Nonnull OutputStream responseStream)
parameterMap - the map that contains the parameters for the queries, may not be nullresponseStream - the stream to write the results in case of success, may not be nullIllegalArgumentException - if the query parameters are invalidIllegalStateException - if a problem occurspublic static void processDataSetRequest(@Nonnull @Nonempty Map<String,String[]> parameterMap, @Nonnull OutputStream responseStream) throws IOException
parameterMap - the map that contains the parameters to the query. May not be nullresponseStream - the result will be written into this streamIOException - if an io problem occurs.Copyright © 2020 TOOP. All rights reserved.