/*
* Add parameters as request body (form).
*/
Form form = new Form();
form.param(PARAM_NAME_EMPLOYEE_NAME, EMPLOYEE_NAME);
form.param(PARAM_NAME_DATE_OF_BIRTH, EMPLOYEE_DATE_OF_BIRTH.toString());
// e.g. http://localhost:8081/tes/resources/employee/create?name=Darth%20Vader
final EmployeeEntity employeeResponse = resource.path("create").request(MediaType.APPLICATION_JSON)
.post(Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE), EmployeeEntity.class);