public final class Traversable extends Object implements RestConverter
PojoRest
support on response objects returned by a @RestMethod
method.
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 RestException
RestConverter
convert
in interface RestConverter
req
- The servlet request.o
- The response object set by the REST method through the RestResponse.setOutput(Object)
method.RestException
- Thrown if any errors occur during conversion.Copyright © 2018 Apache. All rights reserved.