Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ring jetty serlvet adapter using a jetty servlet context
branch: master

This branch is 6 commits behind rmarianski:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


# ring-jetty-servlet-adapter

The main difference between this jetty adapter and the one included in
ring is the addition of additional servlet specific information to the
request map. It relies on ring.util.servlet to dynamically generate a
servlet, whose implementation adds servlet specific keys to the
request map. This servlet then gets used to create the jetty handler.

Specifically, the following new keys are available:

* :servlet
* :servlet-request
* :servlet-response
* :servlet-context

Additionally, the run-jetty function supports an option to generate a
custom jetty handler. This can be useful if any custom configuration
is required.


This should be a function that accepts a single argument, the ring
handler, and returns a jetty Handler.

## Usage

(run-jetty ring-handler {:port 3000 :join? false})

## License

Copyright (C) 2011 Robert Marianski

Distributed under the Eclipse Public License, the same as Clojure.
Something went wrong with that request. Please try again.