Encapsulated request handling in a RequestHandler class.