exposing more options via the ring adapter

17 views
Skip to first unread message

Kevin Downey

unread,
Jun 18, 2011, 10:25:02 PM6/18/11
to Ring
I decided I wanted to play with client certificate authentication
using ring and the jetty adapter, but the current jetty adapter does
not expose a way to set it on the sslconnector. In a fit of yak
shaving I rewrote run-jetty to take a map and reflectively use it to
set properties on various kinds of connectors.

The map of options looks something like:
{:port 8080
:ssl/port 8443}

The namespace portion of the keyword key is used to determine what
kind of connector to set the option on, no namespace is the normal
SocketConnector. Keywords that use 'ring' (like :ring/join?) as the
namespace are reserved for non-jetty adapter options like :ring/join?
and :ring/configurator.

I wonder if there is interest in a patch for this kind of
functionality in ring-jetty-adapter.

https://github.com/hiredman/ring-jetty--adapter (ring-jetty+-adapter,
but github and maven do not seem to like it, so I guess I need a new
name)
Reply all
Reply to author
Forward
0 new messages