@GET
  @Path("/multiply/{a}/{b}")
  @Produces({"text/html"})
  public Response multiply(@PathParam("a") double a, @PathParam("b") double b) {
    String result =  a + " * " + b + " = " + (a * b);
    return Response.ok("<b>" + result + "</b>").type("text/html").build();
  }
Handles: GET /calculator/multiply/{a}/{b} Get the results of a * b.

@param a  the left side operand
@param b  the right side operand

@return the response including the result of a * b
ambari-views/examples/calculator-view/src/main/java/org/apache/ambari/view/proxy/CalculatorResource.java