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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionconvert(RestRequest req, Object o) Performs post-call conversion on the specified response object.
- 
Field Details- 
SWAGGER_PARAMSSwagger parameters for this converter.- See Also:
 
 
- 
- 
Constructor Details- 
Introspectablepublic Introspectable()
 
- 
- 
Method Details- 
convertDescription copied from interface:RestConverterPerforms post-call conversion on the specified response object.- Specified by:
- convertin interface- RestConverter
- Parameters:
- req- The servlet request.
- o- The response object set by the REST method through the- RestResponse.setContent(Object)method.
- Returns:
- The converted object.
- Throws:
- InternalServerError
 
 
-