Example usage for org.apache.commons.httpclient.server SimpleHttpServer SimpleHttpServer

List of usage examples for org.apache.commons.httpclient.server SimpleHttpServer SimpleHttpServer

Introduction

In this page you can find the example usage for org.apache.commons.httpclient.server SimpleHttpServer SimpleHttpServer.

Prototype

public SimpleHttpServer() throws IOException 

Source Link

Document

Creates a new HTTP server instance, using an arbitrary free TCP port

Usage

From source file:org.eclipse.ecf.tests.remoteservice.rest.service.SimpleRestService.java

private void createServer() {
    try {/*  w w  w  .j a v  a 2  s.c  o m*/
        server = new SimpleHttpServer();
        server.setRequestHandler(reqHandler);
    } catch (IOException e) {
        e.printStackTrace();
    }
}