http webserver in java , able to handle get and post request