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
responses.put(new ResponseHolder(System.currentTimeMillis() + responseTime,
new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK)));