Class Traversable

java.lang.Object
org.apache.juneau.rest.converter.Traversable
All Implemented Interfaces:
RestConverter

public final class Traversable extends Object implements RestConverter
Converter for enabling of ObjectRest support on response objects returned by a @RestOp-annotated method.

When enabled, objects in a POJO tree returned by the REST method can be addressed through additional URL path information.

// Resource method on resource "http://localhost:8080/sample/addressBook" @RestOp(method=GET, converters=Traversable.class) public void doGet(RestRequest req, RestResponse res) { return new AddressBook(); }

See Also: