An HttpServlet responds to HTTP methods in a way that the programmer deems fit. A RESTful web service should be based on handling of entities. The CRUD should corresponds to HTTP method POST, GET, PUT and DELETE. Also the url should be defined according to a format, e.g. {server}/{entities}, {server}/{entities}/{id} etc.