I am trying to change the display value of 'Server' in the HTTPHeader info
for an implementation of GrizzlyWebServer 1.9.46. It's probably something
very simple, but I can't find the answer searching this forum or other
sources. Is this something I can do within my code example below? If so,
how, if not how else might I be able to accomplish this?
Thanks in advance for any help,
-Brett
Code snippet:
webServer = new GrizzlyWebServer(port, ".", true);
ServletAdapter jerseyAdapter = new ServletAdapter();
jerseyAdapter.addInitParameter("com.sun.jersey.config.property.packages",
"server.https.auth;server.https.resource;"+
getClass().getPackage().getName());
jerseyAdapter.setContextPath("/");
jerseyAdapter.setServletInstance(new
com.sun.jersey.spi.container.servlet.ServletContainer());
webServer.addGrizzlyAdapter(jerseyAdapter, new String[] { "/"
});
SSLConfig sslConfig = new SSLConfig();
/... I assume SSLConfig steps are not important here./
webServer.setSSLConfig(sslConfig);
webServer.start();
The HTTPHeader info includes:
HTTP/1.1 200 OK
Server: grizzly/1.9.46 *<-- This is the guy I need to change.*
Content-Type: application/octet-stream
Content-Length: 16
--
[Message sent by forum member 'bamundson']
View Post: http://forums.java.net/node/884238