Java class for handling http post requests.