Package org.apache.juneau.rest.converter
Class Traversable
java.lang.Object
org.apache.juneau.rest.converter.Traversable
- All Implemented Interfaces:
RestConverter
Converter for enabling of @RestOp -annotated method.
ObjectRest
support on response objects returned by a When enabled, objects in a POJO tree returned by the REST method can be addressed through additional URL path information.
See Also:
ObjectRest
- Additional information on addressing elements in a POJO tree using URL notation.RestOpContext.Builder.converters()
- Registering converters with REST resources.- Converters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(RestRequest req, Object o) Performs post-call conversion on the specified response object.
-
Constructor Details
-
Traversable
public Traversable()
-
-
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:
BasicHttpException
- Thrown if any errors occur during conversion.InternalServerError
-