Example Restlet-1.1 \ book \ rest \ ch2 \ Example2_5 no client connectors for HTTPS

Example2_5 creates a client for HTTPS to process the request

final Response response = new Client(Protocol.HTTPS).handle(request);

      

The only related jar in Restlet-1.1 is the one org.mortbay.jetty.https.jar

I added to my runtime classpath.

However, I get at runtime

[java] WARNING: No available client connector supports the required protoco
ls: 'HTTPS'. Please add the JAR of a matching connector to your classpath.

Although this is a warning, it results in null as a return on

final DomRepresentation document = response.getEntityAsDom();

      

Could anyone run any of the examples in Restlet-1.1 that are equivalents to the Ruby example buffers from the RESTful Web Services book?

Vitaly

+2


source to share


1 answer


Looking at the connectors web page , there is no Jetty client connector for HTTPS.

I was able to get better results with the "Net" connector (class based java.net

), which required me to add the file com.noelios.restlet.ext.net.jar

to my classpath.



Apparently the Apache Commons HTTP Client is also supported for HTTPS.

+1


source







All Articles