List of usage examples for org.apache.http.impl.nio.bootstrap HttpServer shutdown
public void shutdown(final long gracePeriod, final TimeUnit timeUnit)
From source file:org.apache.http.nio.testserver.HttpServerNio.java
public void shutdown() { final HttpServer local = this.server; this.server = null; if (local != null) { local.shutdown(5, TimeUnit.SECONDS); }//from www .java 2s. co m }