org.mortbay.jetty.Server.setSendDateHeader()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中org.mortbay.jetty.Server.setSendDateHeader()方法的一些代码示例,展示了Server.setSendDateHeader()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Server.setSendDateHeader()方法的具体详情如下:
包路径:org.mortbay.jetty.Server
类名称:Server
方法名:setSendDateHeader

Server.setSendDateHeader介绍

暂无

代码示例

代码示例来源:origin: voldemort/voldemort

httpServer.setThreadPool(threadPool);
httpServer.setSendServerVersion(false);
httpServer.setSendDateHeader(false);
Context context = new Context(httpServer, "/", Context.NO_SESSIONS);
context.setAttribute(VoldemortServletContextListener.SERVER_KEY, server);

代码示例来源:origin: co.cask.hbase/hbase

server.setSendDateHeader(false);
server.setStopAtShutdown(true);

代码示例来源:origin: com.github.sakserv/hadoop-mini-clusters-hbase

server.setSendDateHeader(false);
server.setStopAtShutdown(true);

代码示例来源:origin: com.twitter.hraven/hraven-core

@Override
protected void startUp() throws Exception {
 // setup the jetty config
 ServletHolder sh = new ServletHolder(ServletContainer.class);
 sh.setInitParameter("com.sun.jersey.config.property.packages", "com.twitter.hraven.rest");
 sh.setInitParameter(JSONConfiguration.FEATURE_POJO_MAPPING, "true");
 server = new Server();
 Connector connector = new SelectChannelConnector();
 connector.setPort(this.port);
 connector.setHost(address);
 server.addConnector(connector);
 // TODO: in the future we may want to provide settings for the min and max threads
 // Jetty sets the default max thread number to 250, if we don't set it.
 //
 QueuedThreadPool threadPool = new QueuedThreadPool();
 server.setThreadPool(threadPool);
 server.setSendServerVersion(false);
 server.setSendDateHeader(false);
 server.setStopAtShutdown(true);
 // set up context
 Context context = new Context(server, "/", Context.SESSIONS);
 context.addServlet(sh, "/*");
 // start server
 server.start();
}

代码示例来源:origin: twitter/hraven

@Override
protected void startUp() throws Exception {
 // setup the jetty config
 ServletHolder sh = new ServletHolder(ServletContainer.class);
 sh.setInitParameter("com.sun.jersey.config.property.packages", "com.twitter.hraven.rest");
 sh.setInitParameter(JSONConfiguration.FEATURE_POJO_MAPPING, "true");
 server = new Server();
 Connector connector = new SelectChannelConnector();
 connector.setPort(this.port);
 connector.setHost(address);
 server.addConnector(connector);
 // TODO: in the future we may want to provide settings for the min and max threads
 // Jetty sets the default max thread number to 250, if we don't set it.
 //
 QueuedThreadPool threadPool = new QueuedThreadPool();
 server.setThreadPool(threadPool);
 server.setSendServerVersion(false);
 server.setSendDateHeader(false);
 server.setStopAtShutdown(true);
 // set up context
 Context context = new Context(server, "/", Context.SESSIONS);
 context.addServlet(sh, "/*");
 // start server
 server.start();
}

相关文章