Package org.apache.juneau.rest.converter
Class Introspectable
java.lang.Object
org.apache.juneau.rest.converter.Introspectable
- All Implemented Interfaces:
RestConverter
Converter for enablement of @RestOp -annotated method.
ObjectIntrospector
support on response objects returned by a
When enabled, public methods can be called on objects returned through the RestResponse.setContent(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:
-
&invokeMethod - The Java method name, optionally with arguments if necessary to differentiate between methods. -
&invokeArgs - The arguments as an array.
See Also:
ObjectIntrospector
- Additional information on introspection of POJO methods.RestOpContext.Builder.converters()
- Registering converters with REST resources.- Converters
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(RestRequest req, Object o) Performs post-call conversion on the specified response object.
-
Field Details
-
SWAGGER_PARAMS
Swagger parameters for this converter.- See Also:
-
-
Constructor Details
-
Introspectable
public Introspectable()
-
-
Method Details
-
convert
Description copied from interface:RestConverter
Performs post-call conversion on the specified response object.- Specified by:
convert
in interfaceRestConverter
- Parameters:
req
- The servlet request.o
- The response object set by the REST method through theRestResponse.setContent(Object)
method.- Returns:
- The converted object.
- Throws:
InternalServerError
-