Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 9 version of setResolveNames for Connectors

Hi,

On Tue, Sep 6, 2016 at 10:36 AM, dr ivano <dr.ivano@xxxxxxxxx> wrote:
> Any help will be appreciated.

setResolveNames() was a property used in Jetty 8 to tell the server
implementation to resolve names in case the web application called
ServletRequest#getRemoteHost().
Typically servers don't resolve client host names, but in some cases
this was useful.

This functionality is not present in Jetty 9 out of the box, but if
you need it you can use a request customizer (an implementation of
HttpConfiguration.Customizer).
For example, see
https://github.com/eclipse/jetty.project/blob/jetty-9.3.11.v20160721/jetty-server/src/main/java/org/eclipse/jetty/server/ForwardedRequestCustomizer.java.

-- 
Simone Bordet
----
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.


Back to the top