List of usage examples for org.apache.commons.httpclient.server SimpleResponse setBodyString
public void setBodyString(final String string)
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); conn.setKeepAlive(false);//www. ja v a2 s. c o m conn.writeResponse(res); }