public void run() {
// Wait a bit, to make sure this is delayed.
try { Thread.sleep(10); } catch(InterruptedException ie) {}
// Set the entity after delaying...
try {
NStringEntity entity = new NStringEntity(content, "US-ASCII");
response.setEntity(entity);
} catch (UnsupportedEncodingException ex) {
}
trigger.submitResponse(response);
}