Re: JSON tree

2010-09-17 Thread Simon Gaeremynck
Keep in mind that if you have a very big tree you might run into a 300 status code. The body will contain a JSON object of possible requests you can do. I _think_ it's limited to 200 items by default, but it can be configured trough the Felix admin console. Regards, Simon On 17 September 2010 10

Re: WebDAV client, any suggestions?

2010-06-30 Thread Simon Gaeremynck
course Windows is not able to make heads or > tails of these files and fails to open them. > > *sigh* > > Found an application that does work correctly, BitKinex, but it's more like > old-fashioned FTP clients. That's okay but it makes working with files > needlessly

Re: WebDAV client, any suggestions?

2010-06-30 Thread Simon Gaeremynck
The same can be said for OS X. Finder (built-in file manager) is able to play nicely with WebDAV. Cheers, Simon On 30 Jun 2010, at 15:58, Markus Blaurock wrote: > Hi, > > can only answer for Linux: > > nautilus (standard GNOME-File-Manager) is able to speak WebDAV. > > Just connect to the se

Re: Getting collections using REST

2010-03-04 Thread Simon Gaeremynck
Hi Bertrand, To get the direct childnodes under a node you can do a GET request to http://localhost:8080/content/blog.1.json If you want to go 2 levels deep you can do: GET http://localhost:8080/content/blog.2.json If you want all of the child nodes you can try GET http://localhost:8080/content

Response encoding.

2010-02-26 Thread Simon Gaeremynck
Hi all, I have a (probably stupid) question about response encoding. We have a couple of servlets who output some data. Sometimes that data contains characters like çäöåЦжФ . Now, storing our data on nodes is easy as we pass in a _charset_=utf-8 in our requests each time. However, when we want

Uploading files and setting properties at the same time.

2010-02-23 Thread Simon Gaeremynck
I'm trying to upload a file and set properties on them at the same time. To be able to set a property on a nt:file it has to have a special mixin. I circumvented this, by creating a new nodetype called "sakai:file" which extends the nt:file nodetype and automatically has the appropriate mixin on

Re: Dispatching a request with new RequestParameters

2009-12-16 Thread Simon Gaeremynck
Response inline :) Simon (btw, I'm not getting any mails from the u...@sling list?) On 16 Dec 2009, at 12:42, Vidar Ramdal-2 [via Apache Sling] wrote: On Wed, Dec 16, 2009 at 12:47 PM, Simon Gaeremynck wrote: > > Thanks, but that is not exactly what I'm looking fo

Re: Dispatching a request with new RequestParameters

2009-12-16 Thread Simon Gaeremynck
Thanks, but that is not exactly what I'm looking for. My previous explanation wasn't clear enough. I want to be able to do posts to both nodes and registered servlets. I then went to grab the response and send that back. From what I can tell, this doesn't seem to work for servlets. ex: - Nodes

Dispatching a request with new RequestParameters

2009-12-15 Thread Simon Gaeremynck
I have to write a batchpost mechanism that allows our UI guys to do a single POST to our servlet with a set of endpoints and data for it. Imagine something like: [ {url: /foo/a, data: {a: 1, b: 2}}, {url: /foo/b, data: {alfa: 1, test: 2}}, {url: /foo/c, data: {name: "Simon", b: 2}}, ] So what I d