On 2010-12-31 05.55, Tal Liron wrote:
> pool.) It's probably best to employ a try-finally paradigm, where the
> try clause contains as little code as possible, and the finally clause
> releases the response. See the example below.
>
> var fixture
> var resource =
> document.external('file:///myfil
I took me a while to debug this problem, and I agree it could be made
clearer. Here's what I wrote in the Prudence documentation, and would be
happy if anyone could correct me if I'm wrong:
Important: The semantics of ClientResource require you to explicitly release
the response as soon as you're
How do you find out where the entity is being consumed? I am having a similar
problem but I have never used the entity myself, and i have no Guards only
Applications and Routers. (None of my other Resources consume any entity
data)
--
View this message in context:
http://restlet-discuss.1400322.n
Hello,
I've tried Version 2.0.4 which has also this issue:
POSTing data to GAE does not work when using the resource.wrap method on the
client side. On the GAE, the data object passed to the annotated @post-Method
is always null. It works with a locally deployed version. Also, when I do a
curl
Thx Fabian for your clue.
Here, I work with local variables for both XML content and XPath value. I can
print both variable content, even after trying to use the getNode() method...
So maybe the truth is out there...
> Hello, the post did come twice :-)
>
> It's possible that if you print stu
Like Rickard, we also have started to call release() in a finally
block for client and clientresource code, since it seemed, according
to previous posts, that that was a necessary best practice, especially
when using the Httpclient4 extension, where we'd seen situations where
threads weren't gettin
Hi Jerome,
thanks for your reply. I posted a RFE
http://restlet.tigris.org/issues/show_bug.cgi?id=1225
Regarding json I will use RestyGWT for now. It had other issues but now seems
to work fine for me.
Best Regards & happy new year
Bruno
--
ht
Hi All,
I have a Server resource with a put method declared like:
@Put
public String perist(StringRepresentation requestRep)
However its actually a string of JSON data. The server side doesn't
need to actually parse the JSON data, as its just returned to the
client side via a Get. For correctn
On Thu, Dec 30, 2010 at 10:29 AM, Charlie Mason wrote:
> Hi All,
>
> I am trying to get a put request working via the GWT api. The bellow
> code generates a put request but there is not Representation included
> only the HTTP headers. At the moment I am just trying to get some data
> exchanged bet
I found a Restlet book published on 2 Nov 2010 (according to Amazon :
http://www.amazon.co.uk/Restlet-Official-Developers-Applications-Firstpress/dp/1430209712
), but after searching in Google it seems that this book has been published on
May 2008 (or at least so according to this discussion :
Hello, the post did come twice :-)
It's possible that if you print stuff (read: use the stream) from the
representation you get in the request body, for example for debug
purposes, you'll loose the representation itself (you've already
consumed it), so any method accessing it may return null.
It'
Hi All,
I am trying to get a put request working via the GWT api. The bellow
code generates a put request but there is not Representation included
only the HTTP headers. At the moment I am just trying to get some data
exchanged between the client and the server rather than worrying about
the actua
12 matches
Mail list logo