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()
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
16 matches
Mail list logo