Class StockQuoteService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getQuote​(java.lang.String symbol)
      Retrieve a stock for a given symbol.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StockQuoteService

        public StockQuoteService()
    • Method Detail

      • getQuote

        @GET
        @Path("/{symbol}")
        @Produces({"application/json","text/xml"})
        public javax.ws.rs.core.Response getQuote​(@PathParam("symbol")
                                                  java.lang.String symbol)
        Retrieve a stock for a given symbol. http://localhost:8080/stockquote/IBM
        Parameters:
        symbol - Stock symbol will be taken from the path parameter.
        Returns:
        Response