List of usage examples for org.apache.http.testserver HttpServer shutdown
boolean shutdown
To view the source code for org.apache.http.testserver HttpServer shutdown.
Click Source Link
From source file:org.apache.http.testserver.HttpServer.java
public void shutdown() { final org.apache.http.impl.bootstrap.HttpServer local = this.server; this.server = null; if (local != null) { local.shutdown(5, TimeUnit.SECONDS); }//from w ww . j a va2s. c o m }