POST seems to throw a 500 error code

2008-01-24 Thread dev dev
I just changed the following bookmark example code from PUT to POST and i get an 500 status code using Simple Connector. What did i do wrong here? It works fine if i change it back to use PUT instead of POST. private static void addUser(String userName, String password, String fullName

locale (language) in restlet1.1

2008-01-24 Thread dev dev
How is best handle language locale in restlet 1.1? should we set it in the Accept-Language header and how do we get this out from the Request header in Restlet? Thanks dev

Re: How to decode request thing manually?

2008-01-24 Thread Rob Heittman
Thanks for this continued diligence ... I am travelling right now, but will have a look at it Friday morning (US Central time) - that is, about 8 hrs from now. On 1/24/08, cleverpig <[EMAIL PROTECTED]> wrote: > > Hi,Rob.I made a pair of test program that can prove my consideration,pls > try on: >

Re: Restlets and Asynchronous Request Processing

2008-01-24 Thread Rob Heittman
> It's probably best in that case for handle to return a Future-like object > that lets you wait for completion or cancel. Then Restlets that implement > asynchronous handle could use a common default implementation of synchronous > handle like this ... > That's the general idea I had in mind ...

Re: How to decode request thing manually?

2008-01-24 Thread cleverpig
Hi,Rob.I made a pair of test program that can prove my consideration,pls try on: description: client post a json param to server (uri=/params),server will display params on the console. client: public class ZhProblemClient { public static void main(String[] argv) throws IOException{

restlet.jar is missing methods for Application?

2008-01-24 Thread Sébastien
Hi, I just ran into an interesting problem with 1.0.7. When trying to extend the Application class for my app and override the super class method: setStatusService I kept getting: "The method setStatusService(myStatusService) is undefined for the type myApplication" After browsing the JAR

Re: Restlets and Asynchronous Request Processing

2008-01-24 Thread Tim Peierls
On Jan 23, 2008 7:04 PM, Rob Heittman <[EMAIL PROTECTED]> wrote: > Getting full value out of asynchronous calls will clearly involve a lot of > careful work across the RI and extensions. It would be a great opportunity > to apply correct and modern Java concurrency patterns -- I hope Tim Peierls

RE: Restlets and Asynchronous Request Processing

2008-01-24 Thread Jerome Louvel
Hi guys, That's an exciting area to explore. I hope that our experience with Restlet-GWT will lighten our path. I think we should first identify the use cases we would like to address and how asynchronicity would help. Rob, I'm not sure how to answer your question, but please feel free to share

Re: Spring ServerServlet?

2008-01-24 Thread Florian Schwarz
Abrakadabra - here is your SpringServerServlet - feel free to use it ;-) usage: org.restlet.application beanNameOfTheApplicationToUse org.restlet.component beanNameOfTheComponentToUse springRestletServlet org.res

Spring ServerServlet?

2008-01-24 Thread Barry
Hi all, I'm quite new to this so let me know if I'm missing something obvious. I'm trying to create a Spring configured Restlet Application that will run in a servlet container. As far as I can see I don't think this is supported (as the ServerServlet creates the application). Is there a way t

Re: Problem with SpringHost

2008-01-24 Thread Valdis Rigdon
Simon, You can create and register your own PropertyEditors to get around this. PropertyEditors convert the string representation to an object for injection. See http://static.springframework.org/spring/docs/2.5.x/reference/validation.html#beans-beans-conversion-customeditor-registration

Re: How to decode request thing manually?

2008-01-24 Thread Rob Heittman
Hmmm. if that example works for you, I'd guess the core Restlet request and response character set handling is doing what it's supposed to. I've never exercised JSON with double byte character sets ... maybe there is something funny about character set handling on that code path specifically. I w

Problem with SpringHost

2008-01-24 Thread Simon Olofsson
Hi, I've been working with Restlet for some time now, and it's a great framework. But I've got one problem with the Spring Extension in 1.1 M1. I want to use SpringHost and attach some Restlets to it. SpringHost has the method setRoutes(Map routes). But when I configure this in my beans.xml:

Re: How to decode request thing manually?

2008-01-24 Thread cleverpig
I tried your code,it's fine. But that's form post and page display function,not a json interface. When I switched to json commute way,I got same wrong.. On Jan 24, 2008 2:04 PM, Rob Heittman <[EMAIL PROTECTED]> wrote: > Here is the code I'm using to test, and it round trips your test data fine > i