Example usage for org.apache.http.testserver HttpServer shutdown

List of usage examples for org.apache.http.testserver HttpServer shutdown

Introduction

In this page you can find the example usage for org.apache.http.testserver HttpServer shutdown.

Prototype

boolean shutdown

To view the source code for org.apache.http.testserver HttpServer shutdown.

Click Source Link

Usage

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
}