public final class Introspectable extends Object implements RestConverter
PojoIntrospector support on response objects returned by a
When enabled, public methods can be called on objects returned through the RestResponse.setOutput(Object)
method.
Note that opening up public methods for calling through a REST interface can be dangerous, and should be done with caution.
Java methods are invoked by passing in the following URL parameters:
PojoIntrospector - Additional information on introspection of POJO methods.
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 |
|---|
Introspectable() |
| 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 Introspectable()
public Object convert(RestRequest req, Object o) throws InternalServerError
RestConverterconvert in interface RestConverterreq - The servlet request.o - The response object set by the REST method through the RestResponse.setOutput(Object) method.InternalServerErrorCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.