Example usage for org.apache.http.localserver LocalTestServer LocalTestServer

List of usage examples for org.apache.http.localserver LocalTestServer LocalTestServer

Introduction

In this page you can find the example usage for org.apache.http.localserver LocalTestServer LocalTestServer.

Prototype

public LocalTestServer(final BasicHttpProcessor proc, final ConnectionReuseStrategy reuseStrat,
        final HttpResponseFactory responseFactory, final HttpExpectationVerifier expectationVerifier,
        final HttpParams params, final SSLContext sslcontext) 

Source Link

Document

Creates a new test server.

Usage

From source file:org.apache.camel.component.http4.HttpServerTestSupport.java

@Before
@Override/*from ww  w. ja  v  a2 s  .  c  o m*/
public void setUp() throws Exception {
    localServer = new LocalTestServer(getBasicHttpProcessor(), getConnectionReuseStrategy(),
            getHttpResponseFactory(), getHttpExpectationVerifier(), getSSLContext(), false);
    registerHandler(localServer);
    localServer.start();

    super.setUp();
}