@Override
public void messageReceived(final ChannelHandlerContext ctx, final MessageEvent e) throws Exception
{
HttpRequest request = (HttpRequest)e.getMessage();
HttpMethod method = request.getMethod();
// if we are a post then we send upstream, otherwise we are just being prompted for a response.
if (method.equals(HttpMethod.POST))
{
MessageEvent event = new UpstreamMessageEvent(e.getChannel(), request.getContent(), e.getRemoteAddress());
ctx.sendUpstream(event);
}
// add a new response