setExisting works as advertised?

2009-06-05 Thread webpost
Hi, I'm evaluating restlet and I like what I see, especially the 2.0 version. If I understand ServerResource.setEx​isting(false) correctly, the restlet infrastructure should send back a 404 when I call setExisting(false) on a request (called within the doInit method) Reproducable with 2.0m3 by

Re: restlet server NoSuchMethodError

2009-06-05 Thread Matt Stromske
I just realized I am using an old version of Tomcat (4.1) and the servlet spec for that version of Tomcat does not have support the 'getLocalAddr' method. Darn it. Stephan Koops wrote: > Hi Matt, > > looks like that the JARs are from different Restlet versions. > > best regards >Stephan

Re: setExisting works as advertised?

2009-06-05 Thread Thierry Boileau
Hello Jim, this bug is actually covered by this issue => http://restlet.tigris.org/issues/show_bug.cgi?id=822 It will be fixed soon. best regards, Thierry Boileau > Hi, > > I'm evaluating restlet and I like what I see, especially the 2.0 version. > > If I understand ServerResource.setEx​istin

JSON and File Representation

2009-06-05 Thread Thomas Cozien
Hi, I use RestLet server to send JSON Object with JsonRepresentation object. I want to send picture (or image) with this Json representation. I know i can send picture with FileRepresentation but I wonder if it possible to send both picture and json? Or may I use an other representation? Best

Multiple content types

2009-06-05 Thread Sherif
I realize RESTLet supports multiple encodings based on the Accept Encoding headers. Does Restlet also have a way to allow encodings based on URI patter e.g. http://mystores/items/1000.json or something like that ? -- View this message in context: http://n2.nabble.com/Multiple-content-types-tp3031

Re: Multiple content types

2009-06-05 Thread Jonathan Hall
Have a look at http://www.restlet.org/documentation/2.0/api/org/restlet/service/TunnelService.html getTunnelService().setExtensionsTunnel(true); Jon Sherif wrote: > I realize RESTLet supports multiple encodings based on the Accept Encoding > headers. Does Restlet also have a way to allow encodi

Re: Spring-loaded Restlets with Context dependencies

2009-06-05 Thread Dustin N. Jenkins
Great, thanks Jerome! Dustin Jerome Louvel wrote: > Hi Dustin, > > Thanks for reporting the issue with SpringServerServlet. I've refactored the > ServerServlet#createComponent() method to separate the configuration aspects > into a new configure(Component) method. > > It means that SpringSer

Pagination

2009-06-05 Thread Dustin N. Jenkins
I'm using the 2.0M3 version of Restlet with JDK 1.6 in a Fedora Core 8 environment. My View Layer uses the included FreeMarker. I'd like to be able to paginate my search results in my Restlet Web Application as the user can easily return hundreds of results. I've searched around and came acro

Re: Pagination

2009-06-05 Thread Rob Heittman
Ah, pagination. One of the great programming tradeoffs :-) Have a look at this comment thread from Ohloh a while back. http://www.ohloh.net/forums/3491/topics/1056 Josh Triplett proposes a good solution that is lightweight for paging non-critical data without server state. You can guarantee a

Help with a basic Application and Resources (on JBOSS)

2009-06-05 Thread Andrew Moore
Hi, I'm new to RESTful services and Restlets. I'm trying to create a "hello world" application that is integrated with my company's J2EE app (we're running on JBOSS). >From what I can tell from the tutorials and example source code, it seems pretty simple to add an Application and Resources. I'm

Re: Help with a basic Application and Resources (on JBOSS)

2009-06-05 Thread Andrew Moore
Well... I figured it out. And I am an idiot. I had setup my web.xml to associate my Application class with "/myapp". I was then attaching my resources to a URI that started with "/myapp/...". So therefore, in my browser the URI which properly returned me my resource was: /myapp/myapp/zipcodes/{

Relative URI in GWT Restlet

2009-06-05 Thread wgandhi
Hi ! I have code that uses a GWT restlet class in the client. I generate the request like this: Request request = new Request(Method.GET,"http://localhost:8080/entApp-war/resources/Items/stock/"+symbol+"/";); An existing web service is running on the servlet container at :8080. When I deploy the w