Hi Mike,

Actually the "pluggability" of connectors is a mechanism specific to the NRE
implementation, not the API.

However, the NRE is also discovered by the API using a similar mechanism,
but you can manually override it by calling
org.restlet.util.Factory.setInstance(myImplFactory) before using the Restlet
API.

For the connectors, there is no such method, but it could easily be added
too. I'll see what I can do. 

Best regards,
Jerome  

> -----Message d'origine-----
> De : Mike Moran [mailto:[EMAIL PROTECTED] 
> Envoyé : vendredi 17 novembre 2006 18:22
> À : [email protected]
> Objet : Re: Integration with Apache HTTP Client available
> 
> Jerome Louvel wrote:
> > Hi John,
> > 
> > You only have to put 
> "com.noelios.restlet.ext.httpclient_3.1.jar" in your
> > classpath instead of "com.noelios.restlet.ext.net.jar". The NRE will
> > automatically use it when your create an HTTP/S Client connector. 
> > 
> > You can also tweak its specific parameters for the max 
> number of connections
> > per host, etc. See the Javadocs for details of each parameter.
> 
> In other apis (like the trax java api) I find the automatic 
> selection of 
> implementation quite annoying. I prefer explicitly selecting my 
> implementation of choice. Can this be done in the Restlet API?
> 
> Ta,
> 
> -- 
> Mike

Reply via email to