Added Java API for GET requests.