This is how you hide the server version in Jetty 8:
Server server = new Server(port);
server.setSendServerVersion(false);
How do you do it
If worked out some code that seems to work. Not sure if its right, but at least it works (:
Server server = new Server(port);
for(Connector y : server.getConnectors()) {
for(ConnectionFactory x : y.getConnectionFactories()) {
if(x instanceof HttpConnectionFactory) {
((HttpConnectionFactory)x).getHttpConfiguration().setSendServerVersion(false);
}
}
}