use of org.apache.coheigea.cxf.fediz.service.Number in project testcases by coheigea.
the class DoubleItService method doubleIt.
@GET
@Produces("application/xml")
@Path("/{numberToDouble}/")
@RolesAllowed({ "User", "Admin", "Manager" })
public Number doubleIt(@PathParam("numberToDouble") int numberToDouble) {
Number newNumber = new Number();
newNumber.setDescription("This is the double number response");
newNumber.setNumber(numberToDouble * 2);
return newNumber;
}
Aggregations