Eclipse Jetty extension

Introduction

This connector is based on the Eclipse Jetty open-source web server. Jetty is popular alternative to Tomcat developed by WebTide and has a nice separation between its HTTP protocol implementation and its support for the Servlet API which led to the first HTTP server connector developed for the Restlet Framework.

Description

This connector supports the following protocols: HTTP, HTTPS and SPDY on the server-side and HTTP, HTTPS on the client-side.

The list of supported specific parameters is available in the javadocs:

Here is the list of dependencies of this connector:

For additional details, please consult the Javadocs.

Usage example

Please consult connector configuration documentation

HTTPS

For general information on Jetty HTTPS/SSL configuration, please read this document. For configuration of the connector in a Restlet component, you will need to set some of the HTTPS parameters listed above, for example:

Server server = myComponent.getServers().add(Protocol.HTTPS, 8183);
server.getContext().getParameters().add("keystorePath", "");
server.getContext().getParameters().add("keystorePassword", "");
server.getContext().getParameters().add("keyPassword", "");
</code></pre>

## SPDY

The support for SPDY is disabled by default. In order to use it, you need to add the "spdy.version" parameter to your Jetty HTTPS server configuration with a value of "3" add a special NPN JAR file to the the boot classpath of your JRE 7. See [the instructions here](https://wiki.eclipse.org/Jetty/Feature/NPN).

Additional information on Jetty support for SPDY can be found in [this chapter](https://wiki.eclipse.org/Jetty/Feature/SPDY) of Jetty's user guide.