Accept: application/json

2009-03-17 Thread Donald S Strong
Hi all, I want to set the "Accept" request header but I am frustrated in my attempts. When I try to set the headers in the request the HttpConverter informs me: Addition of the standard header "Accept" is not allowed. Please use the Restlet API instead. ... but I cannot find where in the

unsubscribe

2009-03-17 Thread Sean Curtis
On 3/17/09 12:54 PM, "Marcin Pikula" wrote: > Hi all, > > I have an restlet application which is working very well running > standalone. But I need to deploy it in a Tomcat. When I try to access my app > I always get the following screen: > > Unable to return the xml representation. > > You c

Got "Unable to return the xml representation." using Tomcat

2009-03-17 Thread Marcin Pikula
Hi all, I have an restlet application which is working very well running standalone. But I need to deploy it in a Tomcat. When I try to access my app I always get the following screen: Unable to return the xml representation. You can get technical details here. Please continue your visit at our

Got "Unable to return the xml representation." using Tomcat

2009-03-17 Thread webpost
Hi all, I have an restlet application which is working very well running standalone. But I need to deploy it in a Tomcat. When I try to access my app I always get the following screen: Unable to return the xml representation. You can get technical details here. Please continue your visit at o

RE: unable to get JAXB schema validation to work

2009-03-17 Thread webpost
Jerome, Thank you for your response, yes I did try passing an instance of the ValidationEventHandler to the JaxbRepresentation constructor but the callback method was not invoked. I will continue to experiement... Thank you Adnan -- http://re

Re: Help request

2009-03-17 Thread Thierry Boileau
Hello Endrio, as said Jérôme, the client and server connectors interpretes the HTTP packets in order to build high level objects => Request [1] and Response [2]. From the point of view of a Restlet-based client, the Response object contains a representation of the requested resource (assuming

RE: Help request

2009-03-17 Thread Jerome Louvel
Endrio, What a creative email title! Not sure it usually helps to get a prompt answer :) To get you started, you just need the "org.restlet.jar" (if you are using Restlet 1.2 M1), otherwise you also need "com.noelios.restlet.jar". With those two JARs in your classpath, you have built-in/internal

Help!!!!! Restlet ?!?!?!?!?

2009-03-17 Thread endrio
Hi we're 3 italian students and we have to plan a restful architecture using RESTLET. We ask help to you becouse you're the developer of RESTLET. If you are not, we ask to you a e-mail contact of the developer if you know it. The architecture have to implement a B2B message exchange in xml forma

RE: Re: Restlet and Java 6

2009-03-17 Thread Jerome Louvel
Hi there, Could you explain us what doesn't work and post your current code? Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : webp...@tigris.org [mailto:webp

RE: unable to get JAXB schema validation to work

2009-03-17 Thread Jerome Louvel
Hi Adnan, Did you pass an instance of ValidationEventHandler of the JaxbRepresentation constructor? I've also just added a JaxbRepresentation#setValidationEventHandler method to allow post-construction setting of the property which is used by the getObject() method to send validation events. Bes

Re: Guards

2009-03-17 Thread Thierry Boileau
Hello Mike, I think you can override the "doHandle(Request)" method. Just test the method of the request, if it is a GET then call accept(Request, Response), otherwise call super.doHandle(Request, Response). Best regards, Thierry Boileau > Thanks Thierry! You might consider adding this info to

RE: InterruptedException when stopping component

2009-03-17 Thread Jerome Louvel
Hi Romilly, The task service is managing a pool of threads via the ExecutorService interface, which is recommended over straight threads. It allows changing the threading policy without impacting application code. It also has a proper shutdown mechanism which is hooked to the Component life cy

RE: Re: Guards

2009-03-17 Thread webpost
Thanks Thierry! You might consider adding this info to the guide, because it wasn't clear to me where Guards lived in the chain of calls. Thinking of the Resources and Guards as a tree helped make it clear. One follow-up question: how can I have a Guard only care about certain requests? For e

RE: Re: Restlet (Client side) + Jersey (Server side): is it possible?

2009-03-17 Thread Jerome Louvel
Hi there, Individual JARs are available from our Maven repository. For the Restlet-GWT module, you only need one JAR available here: http://maven.restlet.org/org/restlet/org.restlet.gwt/ Currently, we have only one (large) distribution, but we plan on having several ones in the future. Best reg