Am 22.05.2012 14:04, schrieb Reto Bachmann-Gmür:
On Tue, May 22, 2012 at 10:12 AM, [email protected]<
[email protected]> wrote:
The Sling-Rs is useless for my scenario as it is sort of a "crippled"
Jax-Rs. It doesnt seem to support @Path.
That's correct. Sling-RS is mainly sling and is designed to be used in
applications following sling design patterns, i.e. with resources bound to
sling-types. It just allows to do sling development without having to use
classes from the now very old servlet api. It supports injection of
parameters to method argument as well as conversion from response objects
to http entity bodies by mean of MessageBodyWriters. While this
integrations in Sling requires renouncing on some jax-rs features I think
it make developing for Sling much easier as it hides away more low-level
apis.
wink-osgi by contrast supports standard jax-rs with its @Path annotation.
What could be added is a servlet that can be bound to specific paths so
that within a certain uri-space all requests are handled exclusively by the
jax-rs mechanisms. Would this satisfy your usecase?
I think that is exactly what i am trying to achieve. having a uri space
like /plugins/... for these
kinds of jax-rs applications.
But as I said, it kinda works now when i use this
sling\sling-builder\contrib\launchpad\karaf\src\main\filtered-resources\features.xml
to install sling instead of installing it as described here
https://cwiki.apache.org/SLING/karaf-installation.html
Could it be that installing
<bundle>mvn:org.apache.felix/org.apache.felix.http.whiteboard/2.2.0</bundle>
prevents the pax-web from working with the Servlet-Filters?
My ultimate goal would be to be able to put resources in jackrabbit and
sling-scripts as well as the resources
provided by the jax-rs classes under one common
authentication/authorization mechanism.
In my old implementation (using a webapp and no jcr) I used
spring-security, which was super easy.
Do I see it correctly that more sophisticated security (i.e LDAP, SSO)
are not available through Sling
but only through the closed-source CRX/CQ5?
regards,
Marius