I am trying to follow the example in 6.3 of the latest version of Restlet in
Action to add WADL generation to my Restlet (GAE edition) app.
My application extends WadlApplication
/public class CommitmentServerApplication extends WadlApplication {/
All my resources extend /WadlServerResource/ (but do not override any WADL
methods yet)
My application attaches the server resources...
@Override
public Restlet createInboundRoot() {
Router router = new Router(getContext());
router.attach("/", RootServerResource.class);
router.attach("/commitments/", CommitmentsServerResource.class);
router.attach("/commitment/{commitmentId}",
CommitmentServerResource.class);
return router;
}
My client code is:
ClientResource service = new ClientResource("http://localhost:8888");
System.out.println(service.options().getText());
Yet when I run this I only get information about the root resource, it does
cascade down to any of the attached server resources (output shown below).
Any idea what I am missing? (I have looked at the sample code, but the
difference is eluding me).
Thanks so much!
RB
Output...
<?xml version="1.0" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="wadl2html.xslt"?>
<application xmlns="http://wadl.dev.java.net/2009/02">
<doc title="Root Resource for Commit API"/>
<resources>
<resource>
<doc title="Root Resource for Commit API">Root Resource
Description</doc>
<method name="GET">
<response>
<representation id="root" mediaType="text/plain">
<doc title="Commitment API title">This is the text content
for the doc that is the representation of the root - where on earth does
this appear</doc>
</representation>
</response>
</method>
</resource>
</resources>
</application>
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Beginning-WADL-question-tp7328225p7328225.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2927897