RESTfulService.getRequestParameters

Returns all of the HTTP parameters as a JavaScript object Further documentation.

Javascript example:

 var params = form.rest.getParameters();
 
 var username = params.username;
 if(username)
 {
    //validate username
 }
 ...
 

returns java.util.Map