Ok this must be what is happening then, my entity is being consumed somewhere
before this function. The documentation hasn't quite given me enough
information to be able to troubleshoot where this is happening yet.
So my application is structured very much like the First Steps example
application in the documentation:
A Component starts an Application. The Application has a Router that
attaches several Resources. My Resource has a GET function that is a simple
html form, the same Resource has a POST function which should be the
recipient of that form data.
As far as I can tell from the javadocs, the Application Router shouldn't be
consuming any entity information? It just sends the request to Resource
instances?
My Application does have two similar routes:
------------------------------
router.attach("/pubserver/register", PubServerRegisterResource.class);
router.attach("/pubserver/{login}/{pass}", PubServerResource.class);
------------------------------
So I did add a @Post('html') in the /pubserver/{login}/{pass} Resource just
to test if it is getting routed there first for some reason... But it is
not. The request is going immediately to PubServerRegisterResource.class
where I want it.
The last thing I can think of, is that the Router does indeed read the
entity for some reason (to determine routing perhaps) And that I need to do
something like:
---------------------------------
Representation newrep = new Representation();
newrep = <wherever entity is at the Application Routing level>.getentity();
<wherever entity is at the Application Routing level>.setentity(newrep);
----------------------------------
This is the best troubleshooting I can come up with based on the wiki and
documentation available. I guess this is why its called a "testing" release
or some such heh.
Thanks for the help.
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/What-replaces-GetEntityAsForm-tp5860492p5865259.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2693576