Re: Restlet ClientResource Post Chunked Encoding - WCF Unsuported

2009-12-07 Thread Thierry Boileau
Hello Luiz, Restlet post my xml with Transfer-Encoding: chunked, and my WCF service, can't to interpret posted content That sounds quite strange, because this is a quite basic feature of HTTP. What do you mean by my WCF service can't interpret the posted content? Do you receive an error

Gzip on netty

2009-12-07 Thread kiwionly
hi, I just setup a rest app that use Netty as front end. however, it seem like is not g-zip enabled by default. how can i configure it and test it out ? kiwi happy hacking ! --

Re: JAXRS - methodNotAllowed vs resourceMethodNotFound?

2009-12-07 Thread Stephan Koops
Hi Anthony, it's a long time ago, but if I remember right, your usecase is not planned in JAX-RS, so it is not implemented. I have the code not on the hand, and, I will not have time to look this week. The ExceptionHandler is a class of Restlet, and not implementing a JAX-RS interface, right?

RE: Re: Restlet ClientResource Post Chunked Encoding - WCF Unsuported

2009-12-07 Thread Luiz Alberto
Hello Thierry, Restlet post my xml with Transfer-Encoding: chunked, and my WCF service, can't to interpret posted content That sounds quite strange, because this is a quite basic feature of HTTP. I had read about WCF not support chunked request, but not in officialy source. I tried to found

RE: Re: Restlet ClientResource Post Chunked Encoding - WCF Unsuported

2009-12-07 Thread Luiz Alberto
Hello Ben, Yes, I had tried to use StringRepresentation, and my request continues to be Chunked. Thanks, -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2427857

Re: Supporting multiple types of authorization for a given route

2009-12-07 Thread Rhett Sutphin
Hi David, On Dec 5, 2009, at 3:47 PM, David Bordoley wrote: I was wondering if anyone had experience offering multiple types of authorization (HTTP BASIC, HTTP DIGEST, OAUTH, etc.) for a given route using Restlet. It isn't immediately apparent to me what the best way to do this is using the

Re: CacheDirective.maxAge(int) adds a quoted string to http headers

2009-12-07 Thread Thierry Boileau
Hello Guido, I had a look at the http rfc, and I notice that some cache directives such as max-age specify *unquoted* values. This could have an impact... I'll fix that tomorrow. Best regards, Thierry Boileau Hi, thanks for making the CacheDirective stuff available, now. When setting

Re: Object exchange between Android and AppEngine

2009-12-07 Thread Stephan Koops
Hi Marcel, I have my business model on AppEngine and now like to use Android as a client to communicate via http. I'd like to keep my beans structure and simply transfer objects between client and server and then call servlets for method calls. a) Do you think this is a good approach? (Or

Re: Re: Restlet ClientResource Post Chunked Encoding - WCF Unsuported

2009-12-07 Thread Ben R Vesco
In my case my response with JsonRepresentation was being chunked due to what I believe was a bug with JsonRepresentation (reported on this list, but I think it must be stuck in moderation as there has been no response). My approach to find out why I was getting the chunked header was to step

XML format in ATOM content element

2009-12-07 Thread Rob Lincourt
Hi, I am trying to use the Restlet ATOM extension and I cannot figure out why I am losing the formatting of my content element in the Atom document I am creating. Here is a piece of code from my class that extends ServerResource: public Representation getAtomFeed() throws IOException {

BUG?: JsonRepresentation does not inherit size from wrapped StringRep

2009-12-07 Thread Ben R Vesco
JsonRepresentation has the member variable jsonRepresentation for using a wrapped Representation object in some cases. The bug I'm seeing is that getSize() on the JsonRepresentation object always returns -1 in those cases where it is backed by this other underlying representation. I believe a

Re: XML format in ATOM content element

2009-12-07 Thread David Bordoley
Not sure about your formatting problem, but I thought i'd mention that you need to add a namespace declaration (at the minimum use the default namespace) on the XML within your atom:content element, otherwise an XML processor is going to assume that your XML is in the Atom namespace and many

Re: BUG?: JsonRepresentation does not inherit size from wrapped StringRep

2009-12-07 Thread Thierry Boileau
Hello Ben, your first post has been moderated, but was lost in the list of posts... sorry. Actually, the wrapped Representation is first parsed (in the private getJsonText() method) as JsonObject, even when the write method is called. Thus, it is difficult to know by advance the size of the

Re: Restlet ClientResource Post Chunked Encoding - WCF Unsuported

2009-12-07 Thread Thierry Boileau
Hi Luiz, There are two cases a StringRepresentation has an unknown size: - the underlying string is null - an UnsupportedEncodingException is thrown when the size of the StringRepresentation is computed. The second case happens in the updateSize method: if (getCharacterSet()