Thierry,
Thank you for your response. It works correctly when you modify the code as
you suggested.
Thanks again,
Mike
I am trying to convert an XmlBean XmlObject to a DomRepresentation
and can't seem to make it work. The following is the snippet of code.
(the owner document is not null)
Node document = xmlObject.getDomNode();
DomRepresentation representation =
new DomRepresentation(MediaType.TEXT_XML,
So after some experimentation I've created a ClientHelper and registered
that into restlet, only I'm stuck on the new content negotiation. I have a
Directory mounted to my new osgi://bundle/resource URI scheme, but when I
request /admin/index.html this translates to
osgi://bundle/resource/admin/in
Just updated to the latest snapshot and I'm bit further along, it actually
requests index.html as expected. Changing my ClientHelper to return a
MediaType:
InputRepresentation ir = new InputRepresentation(url.openStream(),
MediaType.ALL);
solves an NPE further down the chain, however now I'm see
I believe I've found where the negotiate content should be used. Looking at
Directory.java:
public Handler findTarget(Request request, Response response) {
try {
return Engine.getInstance().createDirectoryResource(this,
request,
response);
} cat
I've recorded this at http://restlet.tigris.org/issues/show_bug.cgi?id=491
On Fri, May 9, 2008 at 3:47 PM, Mark Derricutt <[EMAIL PROTECTED]> wrote:
> I believe I've found where the negotiate content should be used. Looking
> at Directory.java:
>
--
"It is easier to optimize correct code than
Hi all,
I'm noticing odd behaviour under the latest snapshot in
com.noelios.restlet.local.DirectoryResource#getVariants. The getVariants
method seems to get called 2-3 times for a single request, and each time it
appends the same variants to the variants list. This means that I end up
with three
I've noticed that if i do a PUT to a resource with an empty entity I
get a BAD_REQUEST status code. Is it part of the HTTP spec that the
PUT must contain a non-null entity.
cheers
Hi Jim,
On May 8, 2008, at 11:22 PM, Jim Alateras wrote:
I've noticed that if i do a PUT to a resource with an empty entity I
get a BAD_REQUEST status code. Is it part of the HTTP spec that the
PUT must contain a non-null entity.
We had a discussion of this a few months back. The conclusi
9 matches
Mail list logo