creating restclienthandler to handle connections to the server. but there is only 1 method implemented