Hello,
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?
>
yes, you're right. The routing process does not consume the reques's entity.
> 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.
>
>From what I notice in your sample HTML code, the action URL hits the
PubServerRegisterResource resource. So everything happens correctly:
<form action="http://localhost:8182/main/pubserver/register?" method="post">
> The last thing I can think of, is that the Router does indeed read the
> entity for some reason (to determine routing perhaps).
>
What may happen is that the stream is read for logging, ar any other reason.
Are you using a servlet container?
Best regards,
Thierry Boileau
------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2697607