Re: GWT Restlet Spring timeout problem

2011-04-27 Thread Musa YUVACI
Hello Thierry, I tried net and httpclient extension . But the problem is still continue. (So that Client and service running different server.This is temporarily solution for us now) Another İssue I found interesting situation (that interest with @get operation).I used internal client connector

Problem Running Restleft for the first time

2011-04-27 Thread Bruno Mendes
Hi, I've just downloaded restlet 2.0.6 .zip and I'm trying to use it in Eclipse Helios. After starting the example code for the first server resource, new Server(Protocol.HTTP, 8182, FirstServerResource.class).start();, and trying to access the url via browser, http://localhost:8182/, an

Re: Problem Running Restleft for the first time

2011-04-27 Thread Thierry Boileau
Hello Bruno, the Rome extension is based on the Rome library, which can be found in the lib directory of the zip distribution file. Generally speaking, the list of dependencies (expressed by extension) is available in the lib/readme.txt file of zip distribution file. Having said that, I wonder if

Re: Error while handling HTTP Client call

2011-04-27 Thread Thierry Boileau
Hello Kayode, you can have a look at this thread for some details http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2433378, it points to this documentation http://wiki.restlet.org/docs_2.0/13-restlet/185-restlet.html. Basically, the AJAX request should consume a resource

Restlet and SpringMVC

2011-04-27 Thread Smicky
Hi all, At a customer site, we are going to use Restlet to provide REST services. We have to build a web application that basically consume those services and includes protected areas. My question is around the possible options and best practices one should follow : - Is Restlet intended to

Re: java.net.SocketException: Broken pipe

2011-04-27 Thread Thierry Boileau
Hello Kevin, I try to reproduce your problem, could you give us more details about the source of data : is is a static file, or generated content? What kind of server connector are you using? Best regards, Thierry Boileau I have a URLConnection that connects to a Restlet URI which sends back

Re: How to signup a ChallengeAuthenticator when using SpringBeanRouter

2011-04-27 Thread Daniele Dellafiore
Hi. I was trying to do the same thing and I just found your unanswered message. I know it's a old request but, for future googlers, here what I've done. I've override setInboundRoot(final Restlet inboundRoot) in my class that extends Application. @Override public synchronized void

RE: Re: Post method not work when deployed to GAE

2011-04-27 Thread Thierry Boileau
Hello all, the now closed issue 1219 [1] described the solution to this issue. In a few words, a new boolean attribute called entityBuffering has been added to the ClientResource class. When set to true, the entity is first stored in memory then sent to the GAE server. Best regards, Thierry

RE: Re: Post method not work when deployed to GAE

2011-04-27 Thread Thierry Boileau
I forgot to say that the fix is available in the current snapshot and will be part of the 2.1m4 release. Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2724966

RE: ResourceException description not present anywhere in 'default' HTML representation output

2011-04-27 Thread enzostartkd
Hi ! if someone could answer in french, it would be better, but i accept english too ! I also wonder about utility of description. How can we use it on client side ? Thanks Vincent -- View this message in context:

multiple attachments on SpringHost

2011-04-27 Thread Daniele Dellafiore
Hi. I've a working app that serve a REST API where the compoenent is configured like bean id=component class=org.restlet.ext.spring.SpringComponent init-method=start destroy-method=stop property name=server ref=server / property name=defaultTarget ref=apiApplication / /bean This

Re: Restlet conversion of Hashmap to JSON/XML

2011-04-27 Thread Thierry Boileau
Hello John, there are several ways to achieve this. If you are using the XStream extension, you can take the control of the generation by specifying a dedicated method in the resource (with this annotation @Get(xml) ), and having a look at this page :

RE: Re: Problem Running Restleft for the first time

2011-04-27 Thread Bruno Mendes
Thanks, indeed I'm just giving the first steps, so no need for any extensions atm. I would recoment adding a 'setup' or 'install' section in the first steps page (http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet.html), that way new users won't get confused as I did. Also in

RE: ObjectRepresentation with an Object embedding a negative int value

2011-04-27 Thread Thierry Boileau
Hello, could you provide a sample test case? Best regards, Thierry Boileau -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2725219

First Application return List or Arraylist of contacts

2011-04-27 Thread Diego Rodriguez
Hello I am working some days with this framework and i don´t get to run correctly the first application example if i return in the get method a list or arraylist of contacts. If i return one contact all works well get and put method, but if i make some changes to return a list or arraylist is

Re: multiple attachments on SpringHost

2011-04-27 Thread Daniele Dellafiore
I've figured out what it was Using just / as the entry key was a silly idea. This way the server answer on localhost:// instead of localhost:/ So using an actual path like /api make everything works. On Wed, Apr 27, 2011 at 2:54 PM, Daniele Dellafiore ilde...@gmail.comwrote: Hi. I've a

First Application outside gae

2011-04-27 Thread Bruno Mendes
I'm trying to create my first application (http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html#dsy303-restlet_jse) outside without GAE. So I have the 3 classes: Contact (serializable), Address (serializable) and ContactResouce Created the ContactServerResource

Re: java.net.SocketException: Broken pipe

2011-04-27 Thread ksmoran
Thanks for the response. So I'm sending 8MBs of data at a time to a server which stores it. Later on, that server needs to send it back. What I don't understand is that I never get this error when I'm writing from the sender to the receiver, but instead it only happens from sending back from

Setting Response Header with JAX-RS

2011-04-27 Thread Borislav Iordanov
Hi, It seems this was a previously reported bug that was supposedly fixed: http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2404829 But I still get the problem: headers set in the ResponseBuilder JAX-RS object are ignored. Here's how my code looks: @OPTIONS Path(/foo)

Restlet Framework 2.1 M4 and 2.0.7 released

2011-04-27 Thread Jerome Louvel
Hi all, We have two new releases available and encourage everyone to update as they fix some annoying issues: http://blog.noelios.com/2011/04/27/restlet-framework-2-1-m4-and-2-0-7-released/ Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org/