public final class Traversable extends Object implements RestConverter
PojoRest 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.
PojoRest - Additional information on addressing elements in a POJO tree using URL notation.
RestContext.REST_converters - Registering converters with REST resources.
| Constructor and Description |
|---|
Traversable() |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(RestRequest req,
Object o)
Performs post-call conversion on the specified response object.
|
public Traversable()
public Object convert(RestRequest req, Object o) throws HttpException, InternalServerError
RestConverterconvert in interface RestConverterreq - The servlet request.o - The response object set by the REST method through the RestResponse.setOutput(Object) method.HttpException - Thrown if any errors occur during conversion.InternalServerErrorCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.