But AbstractController already has those methods. If we first add the check in the onDispatch method of the AbstractRestfulController that it is a HTTP request then it is a HTTP response. I'm not sure what kind of interface you want. It won't work because the signatures won't be the same.