Thanks Xavier for the pointer.
They mention a new RequestFactory class that would facilitate REST/JSON
calls in GWT, but I wasnt able to find more details on the web. Anyone has
more info at this point?
Best regards,
Jerome Louvel
--
Restlet ~ Founder and Technical Lead ~
Thought I've followed what I could of the progress on asynchronous
support, I have a few interdependent questions and suggestions.
1. On the one hand, I really like how simple asynchronicity is handled.
I can defer my response to later (from another thread). But, Restlet
provides no tools to
Hi Matthew,
Thanks for your patience. The OData extension was initially designed for the
Restlet edition for JSE/JEE/GAE and we haven't done any special optimization
yet to run on a more limited Android device.
One thing you should really do is to replace the internal HTTP connector with
the
Hi Shrileckha,
Supporting several Restlet applications is possible in Restlet 1.1 (use
several WARs on the org.restlet.component parameter). However it is much
easier to achieve in Restlet 2.0, see the example in the Javadocs:
otherwise, just a word to say that gwt2.1M1 is out
http://www.ongwt.com/post/2010/05/20/GWT-2.1.0-m1
2010/5/20 Jerome Louvel jerome.lou...@noelios.com
Thanks, after further digging, it seems connected to the new GWT
ValueStore mechanism:
Thanks Thierry!
I've overridden the doHandle method and now it works great.
Looking forward for Restlet 2.0 and your book!
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/Set-response-in-guard-tp4952267p5079381.html
Sent from the Restlet Discuss mailing list
On Thu, May 20, 2010 at 8:31 AM, Jerome Louvel
jerome.lou...@noelios.com wrote:
Hi Alex,
1. This design was already in place for the older Finder, with the
findTarget() and createTarget() methods. The idea is that find() could
potentially reuse instances of ServerResource subclasses created
I've been happily coding along using Restlet 1.1 and now that I'm attempting
to upgrade to 2.0, I've been working through a myriad of issues. The one
that caught my attention today is that the default routing mode has changed
to MODE_EQUALS and so all my code that assumes MODE_STARTS_WITH
needs
Hi Jean-Philippe,
It doesn't, and the main problem is that you need to consume the stream
for the digest to be computed. If you want to do it in a filter, you
have to store whatever your read and then put the data back into the
representation.
I've just tried with a simple example and a some
Disregard this message. The problem was ours, new'ing up a Client for each
request and never calling Client.stop().
Sorry for the noise.
Doug
On Wed, May 19, 2010 at 4:13 PM, Doug Douglass douglass.d...@gmail.comwrote:
We've got Restlet built into many of our wars as an HTTP client to request
Hi, Stephan.
I'm working on the client side. I'm manipulating the namespaces prior to
getting the DOM instantiated. This transformation is being done to get around a
limitation in a third-party toolkit that processes the DOM.
--
Thanks,
Chandra
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2610991
You can configure multiple resources in Application class.. But there will be
only one application...
Eg
router.attach(req1 format, Resource1.class);
router.attach(req2 format, Resource1.class);
router.attach(req3 format, Resource2.class);
Thanks,
Chandra
I don't think API supports this feature. But you get the required data from
HttpServletRequest and set with Representation before sending the request to
resource.
In resouce, you can use the representation.getText() to get the data. We had
similar requirement and this solution worked for us.
Hi Adrian,
It should work. Can you post your complete code?
Form form = new Form(entity);
String paramvalue= form.getFirstValue(paramname);
Thanks,
Chandra
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2610983
Hi Shrileckha,
In restlet 2.0, you can use ServletUtils to get the HttpServletRequest.
Thanks,
Chandra
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2610988
Hi Stephan,
I would like to keep record which user downloads which resource, in order to
later bill the user for those received successfully.
I consider that the resources are relatively large and to be sent over a
slow connection susceptible to frequent failures.
Best regards,
Daniel Ferber
We've got Restlet built into many of our wars as an HTTP client to request
authorization-related information from a server, also built upon Restlet and
Spring. These projects were initially using Restlet 1.5, but we quickly
moved to 2.0 last fall, using both milestone releases and home-built
Thanks Chandra.. Even in restlet1.1, we can get the HttpServletRequest using
the following code:
HttpServletRequest httpRequest = ServletCall.getRequest(getRequest());
The ServletCall is from the com.noelios.restlet.ext.servlet-2.5.jar.
It works for me. Are you part of the Restlet team?
Hi
Can we use annotations in Restlet 1.1 version. if so can you paste me a
sample example?
Thanks,
Shrileckha Chaithanya
--
View this message in context:
http://restlet-discuss.1400322.n2.nabble.com/do-annotations-work-in-Restlet-1-1-version-tp5079965p5079965.html
Sent from the Restlet
Hi Alex,
Regarding Finder, overriding find() should be just fine indeed, its behavior is
very similar to findTarget() in Restlet 1.1.
As for targetClass, if you have you own custom way to find/create resources,
you might safely ignore it indeed. It is essential only for the default
behavior.
Hi Shrileckha,
Can we use annotations in Restlet 1.1 version. if so can you paste me a
sample example?
The answer is short: No. You have to use Restlet 2.
best regards
Stephan
___
GRATIS: Movie-Flat mit über 300 Top-Videos. Für WEB.DE
Hi,
I'm working on the client side. I'm manipulating the namespaces prior to
getting the DOM instantiated. This transformation is being done to get around
a limitation in a third-party toolkit that processes the DOM.
it seems, that it needs a lot of time for conversion. If you need performance
Thanks Stephan for the reply... Can you tell me when is the restlet2.0 going
to be in a stable mode? I have a product release end of july, can I use the
restlet2.0 version for my development?
Pls advice,
-Shrileckha Chaithanya
--
View this message in context:
Hi Fabian,
Are you testing your restlets?
as I've implemented the JAX-RS extension, I do some unit tests, which
tests for correct behaviour, but not for performance.
How?
I've created some requests by the client API, but I don't let it
serialize by Restlet, but directly call the
Hi Shrileckha,
Thanks Stephan for the reply... Can you tell me when is the restlet2.0 going
to be in a stable mode? I have a product release end of july, can I use the
restlet2.0 version for my development?
I don't know.
Jerome, Thierry ?
best regards
Stephan
Stephan,
The value of the newCookie is fine up until the point it is copied into the
set-cookie header value in
org.restlet.ext.jaxrs.internal.util.Util:copyResponseHeaders (line 300). The
value that is copied is is basically the toString() of the NewCookie
(testCookie=test; $Path=/my_path;
Hi Sriram,
Now I've had time to take a look into the source code, but I don't find
a bug.
Because I have not your full source code here, I have to ask again:
Please set a breakpoint in
org.restlet.engine.http.header.CookieSettingWriter and see what happens
with the value of
Stephan,
I don't understand the org.restlet.test layout well enough to build a new
testcase that will build a mock jaxrs Response and put it through the
restlet lifecycle.
However I think I found the cause for the cookie setting bug.
NewCookieHeaderDelegate:toString is using CookieWriter. It
29 matches
Mail list logo