I have to write a little Java program that stands in the middle of a client and the true http server. I glanced over Apache’s HttpAsyncClient, but it’s in fact a client library. Is there any other library capable of listening as server too?
If it helps, I need is to parse JSON in this program, but I don’t think that it matters.
Maybe you should take a look at netty: http://netty.io/
Once has been part of jboss and is now a stand-alone project.