Search in sources :

Example 1 with Number

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;
}
Also used : Number(org.apache.coheigea.cxf.fediz.service.Number) Path(javax.ws.rs.Path) RolesAllowed(javax.annotation.security.RolesAllowed) Produces(javax.ws.rs.Produces) GET(javax.ws.rs.GET)

Aggregations

RolesAllowed (javax.annotation.security.RolesAllowed)1 GET (javax.ws.rs.GET)1 Path (javax.ws.rs.Path)1 Produces (javax.ws.rs.Produces)1 Number (org.apache.coheigea.cxf.fediz.service.Number)1