Hi Brian,
On Mar 6, 2008, at 10:04 AM, Brian Donnovan wrote:
thanks for the hint, i will try it that way!
just one thing, i looked at the springresource class and it seems to
not have
much in common with the original resource class. the great thing of
the
resource class were the hooks for get,put,post,delete actions and
the automatic
trigger mechanism of the right method when a request comes in. that
approach
doesn´t seem to exist in the springresource, right ?
As it says in the docs, "do not get confused, Spring's notion of
Resource is different from Restlet's one, actually it's closer to
Restlet's Representations." SpringResource is a mapping from
Restlet's Representation concept to _Spring's_ Resource concept. You
can use regular Restlet Resource instances with Spring, so there's not
a specialized subclass.
You didn't say what version of Restlet you're playing with, but 1.1-M2
introduces several new spring integration modes. If you are trying to
add Restlet-based code to an existing spring-backed servlet
application, take a look at
http://www.restlet.org/documentation/1.1/ext/com/noelios/restlet/ext/spring/RestletFrameworkServlet.html
which lets you configure a restlet-based servlet just like a Spring-
MVC-based one. You might also consider using
http://www.restlet.org/documentation/1.1/ext/org/restlet/ext/spring/SpringBeanRouter.html
which allows you to use spring bean names to automatically map
resource implementations to URIs without manually creating finders.
There isn't any documentation for these classes other than the javadoc
(more coming soon). Feel free to ask questions if you run into trouble.
Rhett