Details
Description
We are migrating from Jetty 5 -> 6. We run Jetty behind apache web server - apache reverse proxies to Jetty. When we have SSL connections into apache, they connect to Jetty via a SelectChannelConnector. In Jetty 5 we had a number of org.mortbay.http.SocketListeners. On one (meant to handle the proxied ssl connections) we set defaultScheme to https. This meant that any redirects coming out of Jetty on this listener would default to https redirects.
Any chance for a similar mechanism in Jetty 6?
I don't think we will add it in Jetty 6, because it is so simple to do with an anonymous class:
Server server=new Server();
{ super.customize(endpoint,request); request.setScheme("https"); }Connector connector=new SocketConnector()
{
public void customize(EndPoint endpoint, Request request) throws IOException
};
server.addConnector(connector);
....
If this is not sufficient, please reopen this issue.
cheers