HttpResponseStatus.OK);
sourcesResp.setHeader(HttpHeaders.Names.CONNECTION, HttpHeaders.Values.KEEP_ALIVE);
sourcesResp.setHeader(HttpHeaders.Names.TRANSFER_ENCODING, HttpHeaders.Values.CHUNKED);
ObjectMapper objMapper = new ObjectMapper();
HttpChunk body =
new DefaultHttpChunk(ChannelBuffers.wrappedBuffer(objMapper.writeValueAsBytes(String.valueOf(startScn))));
NettyTestUtils.sendServerResponses(_dummyServer, clientAddr, sourcesResp, body);
}
static class DummyDatabusBootstrapConnectionStateMessage implements DatabusBootstrapConnectionStateMessage
{