Hi,
I am wondering if Restlet reuses the HTTP connections for multiple requests
per client.
And if yes, how could I take advantage of that?
I consider that a client sends a burst of requests. As long as the
connections is alive, for example, I could use the same database session,
instead of
Hi,
where can I find documentation how to use annotations for v2 RC3 ?
More over I have a problem how to define that a POST should get as payload a
multipart-form (fields + file) and I should send back a PDF document.
I understand I can define @Post(???|pdf) but I don't know what the ???
Hello Hideki,
you can find documentation on the wiki :
http://wiki.restlet.org/developers/172-restlet/226-restlet.html
At this moment, multipart documents are not supported:
http://restlet.tigris.org/issues/show_bug.cgi?id=71
Best regards,
Thierry Boileau
Hi Thierry,
thanks a lot.
What is the annotation for a POST that gets xml in and should send pdf document
out ?
Is is @Post(xml|pdf) ?
Is there somewhere an example of how to send back a byte stream to the
outputstream ?
Regards,
HT.
--
Hi,
I get following error when trying to consume an xml document passed via a
POST. The error pops-up at following line:
SaxRepresentation xmldocument = new SaxRepresentation(entity);
FINE: Delegating the call to the target Restlet
28-mei-2010 20:28:59 org.restlet.service.ConverterService
I managed to solve the problem by copying all the *.jars I found in the V2RC3
jar file and retry again (using Tomcat 6).
The error disappears but now I get another:
28-mei-2010 22:20:33 org.restlet.resource.UniformResource doCatch
WARNING: Exception or error caught in resource
Solved!
IT was a problem with too much / too many jar files.
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2614571
Hi,
which tool can I use to see what the requests and responses are between a
httpclient and the Tomcat server ?
Currently I have client code like:
ClientResource helloClientResource =new
ClientResource(http://localhost:8080/...;);
...
helloClientResource.post(xmldocument).write(System.out);
One such tool, which is made in Java, and it's not so expensive (USD
50 or so IIRC), is Charles Web Proxy.
http://www.charlesproxy.com/
There's also the HTTPFox addon for Firefox, which is good enough if
your client side is a web browser (which is not your case, but
anyway...)
I'm sure there's
9 matches
Mail list logo