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

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

Introduction

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

Prototype

public SimpleResponse() 

Source Link

Usage

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

protected void hookResponse(SimpleHttpServerConnection conn, String body) throws IOException {
    SimpleResponse res = new SimpleResponse();
    res.setStatusLine(HttpVersion.HTTP_1_1, HttpStatus.SC_OK);
    res.setBodyString(body);// www. j a va  2s .c om
    conn.setKeepAlive(false);
    conn.writeResponse(res);
}