public final class Queryable extends Object implements RestConverter
PojoQuery
support on response objects returned by a
When enabled, objects in a POJO tree can be filtered using the functionality described in the PojoQuery
class.
The following HTTP request parameters are available for tabular data (e.g. Collections
of Maps
,
arrays of beans, etc...):
&s=name=Bill*,birthDate>2000
&v=name,birthDate
&o=name,birthDate-
0
.
0
(meaning return all rows).
PojoQuery
- Additional information on filtering POJO models.
RestContext.REST_converters
- Registering converters with REST resources.
Modifier and Type | Field and Description |
---|---|
static String |
SWAGGER_PARAMS
Swagger parameters for this converter.
|
Constructor and Description |
---|
Queryable() |
Modifier and Type | Method and Description |
---|---|
Object |
convert(RestRequest req,
Object o)
Performs post-call conversion on the specified response object.
|
public static final String SWAGGER_PARAMS
public Queryable()
public Object convert(RestRequest req, Object o)
RestConverter
convert
in interface RestConverter
req
- The servlet request.o
- The response object set by the REST method through the RestResponse.setOutput(Object)
method.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.