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()

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: 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 proces

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 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 { Fee

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 bette

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 throu

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?

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 settin

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 t

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=4447&dsMessageId=2427857

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 foun

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

2009-12-07 Thread weltermann17
Hi, thanks for making the CacheDirective stuff available, now. When setting max-age via the new mechanisms a line as follows is added: Cache-Control:max-age="3600" I'm absolutely no http expert. But with respect to RFC2616 14.6 "age values are non-negative integers". Can it be confirmed than ev

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? T

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 ! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&d

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 sta

Re: adding new router attachements dynamically?

2009-12-07 Thread Xavier Méhaut
I'm eager to read you soon. regards Xavier 2009/12/7 Bryan Hunt > Yes, there is a way to do this, but I can't go into the details. I know > that's not the answer you were looking for. A colleague and I are working > on a solution that allows you to register a representation as an Eclipse > ext