Hi Daniel,

Thanks for the feed-back and all the questions. 

Looking at OSGi's LogService package, it seems that providing an adapter
between JDK's logger and OSGi's one should be straightforward:
http://www2.osgi.org/javadoc/r4/org/osgi/service/log/package-summary.html

One of the initial design choice for the Restlet API was to have no external
dependency beyond the Java 5 core APIs, in order to be as lightweight as
possible in comparison to Servlet API for example.

However, the API implementation (NRE only for now) could be built on (or
support) the OSGi framework. We already have an RFE for this at:
http://restlet.tigris.org/issues/show_bug.cgi?id=83

Concerning the other questions:

> How to define customized Guard?
No specific documentation beside the Javadocs for now.
http://www.restlet.org/docs/api/org/restlet/Guard.html

> How to define customized ChallengeScheme?
This currently requires knowledge and modification of the NRE. In the
future, we are planning to support pluggable authentication schemes:
http://restlet.tigris.org/issues/show_bug.cgi?id=229

> How to define and use encode/decode filters?
We currently consider that applications shouldn't manually/directly handle
the encoding/decoding logics as they tend to be specific/tuned for
particular deployment environments.

That's why, for decoding, we have a Decoder service for each Application
that can be enabled: org.restlet.service.DecoderService

For encoding, we don't currently have a similar service but are considering
one:
http://restlet.tigris.org/issues/show_bug.cgi?id=208

For now, you can always use the NRE's Encoder/EncodeRepresentation classes
at:
http://www.restlet.org/docs/nre/com/noelios/restlet/application/package-summ
ary.html

> How to integrate with Spring or OSGi?

We have some samples illustrating integration of Spring and Restlet at:
http://wiki.restlet.org/

See also:
http://www.restlet.org/faq#07

Nothing specific to OSGi is available yet: contribution opportunity :)

> Jars dependences?

Check the "/lib/readme.txt" file in the distribution for all details. Copy
available online at: http://www.restlet.org/docs/dependencies

Best regards,
Jerome  

> -----Message d'origine-----
> De : news [mailto:[EMAIL PROTECTED] De la part de Daniel
> Envoyé : samedi 17 février 2007 08:44
> À : [email protected]
> Objet : logging support as OSGi and more docs?
> 
> Hi, 
> I am new to restlet and I've just download restlet 1.0 RC4, I 
> find many of the
> library is OSGi compatible.
> 
> But when I try the tutorial, I find logger is bounded to 
> java.util.logging.
> 
> My question is why not set logger as standard OSGi mechanics.
> 
> And do you have more docs such as :
> How to define customized Guard and ChallengeSchema?
> How to define and use encode/decode filters?
> How to integrate with Spring or OSGi?
> Jars dependences?
> 
> Thx!
> 

Reply via email to