+The purpose of this class is to Map URLs to Controller classes. The main class is the RestServer, wich is responsible for holding the Request, the Response, the Url map and to make decisions about what to load.
+The Controller(preferred) or View to receive the request must implement RestController or RestView. The RestController should implement the execute() method receiving a RestServer as a parameter, as follow:
+Both need to have a parameter-free public constructor(or no constructor at all). Alternative methods must also receive the RestServer as a parameter. Ideally it should always return something, but that's not mandatory. One can return the RestServer, ending the session, or a RestAction(which is any RestController or RestView) to be taken next. Example:
+For recovering information about the request taken, the RestServer provides the RestRequest object. You can get it by calling the getRequest() method on the RestServer. There are a few methods available on the RestRequest:
+To build up a response, the RestServer provide the Response Object. Access it by calling the method getResponse() on the RestServer. The RestResponse gives you the following methods:
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2
dfbccd2