@Override
public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Exception {
IcapResponse response = (IcapResponse)e.getMessage();
if(response.getStatus().equals(IcapResponseStatus.CONTINUE)) {
System.out.println(response.toString());
IcapChunk chunk = new DefaultIcapChunk(ChannelBuffers.copiedBuffer("ns why and how we can avoid such a desaster next time...".getBytes()));
IcapChunkTrailer trailer = new DefaultIcapChunkTrailer(true,false);
ctx.getChannel().write(chunk);
ctx.getChannel().write(trailer);
} else if(response.getStatus().equals(IcapResponseStatus.NO_CONTENT)) {
System.out.println(response.toString());