作者:mini泥猴 | 来源:互联网 | 2023-09-23 21:33
本文整理了Java中org.eclipse.jetty.servlet.ServletContextHandler.stop()
方法的一些代码示例,展示了ServletContextHandler.stop()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ServletContextHandler.stop()
方法的具体详情如下:
包路径:org.eclipse.jetty.servlet.ServletContextHandler
类名称:ServletContextHandler
方法名:stop
ServletContextHandler.stop介绍
暂无
代码示例
代码示例来源:origin: ninjaframework/ninja
@Override
public void doShutdown() {
try {
if (this.contextHandler != null) {
this.contextHandler.stop();
this.contextHandler.destroy();
}
} catch (Exception e) {
// keep
}
try {
if (this.jetty != null) {
logger.info("Trying to stop jetty {}", getLoggableIdentifier());
this.jetty.stop();
this.jetty.destroy();
logger.info("Stopped jetty {}", getLoggableIdentifier());
}
} catch (Exception e) {
log.error("Unable to cleanly stop jetty", e);
//throw new RuntimeException(e);
}
}
代码示例来源:origin: spring-projects/spring-framework
@Override
public void stop() throws Exception {
try {
if (this.contextHandler.isRunning()) {
this.contextHandler.stop();
}
}
finally {
if (this.jettyServer.isRunning()) {
this.jettyServer.setStopTimeout(5000);
this.jettyServer.stop();
}
}
}
代码示例来源:origin: spring-projects/spring-framework
@Override
protected void stopInternal() throws Exception {
try {
if (this.contextHandler.isRunning()) {
this.contextHandler.stop();
}
}
finally {
try {
if (this.jettyServer.isRunning()) {
this.jettyServer.setStopTimeout(5000);
this.jettyServer.stop();
this.jettyServer.destroy();
}
}
catch (Exception ex) {
// ignore
}
}
}
代码示例来源:origin: org.ops4j.pax.web/pax-web-jetty
@Override
public void stop() throws Exception {
context.stop();
}
};
代码示例来源:origin: griddynamics/jagger
@Override
public void stop() throws Exception {
delegate.stop();
}
代码示例来源:origin: org.eclipse.jetty.tests/test-sessions-common
context.stop();
代码示例来源:origin: org.eclipse.jetty.tests/test-sessions-common
context.stop();
context.start();