Interface StarbucksOutletService

    • Method Detail

      • addOrder

        @POST
        @Path("/orders/")
        @Produces("application/json")
        @Consumes({"text/xml","application/xml"})
        javax.ws.rs.core.Response addOrder​(Order orderBean)
      • getOrder

        @GET
        @Path("/orders/{orderId}")
        @Produces({"application/json","application/xml"})
        Order getOrder​(@PathParam("orderId")
                       String id)
        Read the following article on ATOM data binding in CXF http://goo.gl/UKJdM
        Parameters:
        id - order id
        Returns:
        the order
      • updateOrder

        @PUT
        @Path("/orders/")
        @Produces("application/json")
        @Consumes("application/json")
        javax.ws.rs.core.Response updateOrder​(Order orderBean)
      • getPendingOrders

        @GET
        @Path("/orders/pending/")
        @Produces({"application/json","application/atom+xml;type=feed","application/xml"})
        javax.ws.rs.core.Response getPendingOrders()
      • lockOrder

        @PUT
        @Path("/orders/lock/{orderId}/")
        @Produces("application/xml")
        javax.ws.rs.core.Response lockOrder​(@PathParam("orderId")
                                            String id)
      • removeOrder

        @DELETE
        @Path("/orders/{orderId}/")
        @Produces("text/plain")
        javax.ws.rs.core.Response removeOrder​(@PathParam("orderId")
                                              String id)
      • doPayment

        @POST
        @Path("/payment/{orderId}/")
        @Produces({"application/json","text/html"})
        javax.ws.rs.core.Response doPayment​(@PathParam("orderId")
                                            String id,
                                            Payment payment)
      • getPayment

        @GET
        @Path("/payment/{orderId}/")
        @Produces("application/json")
        Payment getPayment​(@PathParam("orderId")
                           String id)