[Simpleweb-Support] Using Simple vs using Restlet
Brought to you by:
niallg
From: Paul J. L. <pau...@ma...> - 2007-11-19 23:30:15
|
I want to implement a small, embedded web server that does the following things: 1. Implements a subset of WebDAV-like functionality, i.e., GET, PUT, DELETE, COPY, and MOVE requests. 2. Implements a "metadata" service that gets/puts the metadata for image files, e.g., a request of the form: GET /metadata/path/to/image.jpg will return the metadata of the image as an XML document and PUT will put it back. 3. Implements an "image manipulation" service driven by various parameters, e.g.: GET /image/path/to/image.jpg&maxdim=100 would create a smaller version of the image whose maximum dimension is 100 pixels. Optionally, the smaller image may be cached on the server at a different URL in which case the server would responsd with a "303 See Other" status code and the URL of the smaller image. I had been looking at the Restlet framework for doing all of this, but, while powerful, it seems overly complicated and doesn't have enough documentation about the "right" way to do things. As you may know, Restlet requires a web server framework in top of which to operate. I was using Restlet on top of Simple. But then I began to wonder if I could do implement the stuff I need using Simple directly and not have to deal with the Restlet framework. Is this reasonable? - Paul |