Class StockQuote


  • public class StockQuote
    extends Object
    Provides access to a SOAP service for getting stock quotes based on a symbol. Found on http://www.devx.com/Java/Article/27559/0/page/2
    • Constructor Detail

      • StockQuote

        public StockQuote()
        Default constructor.
      • StockQuote

        public StockQuote​(String symbol)
        Constructor setting the symbol to get the quote for.
        Parameters:
        symbol - the symbol to look up
    • Method Detail

      • getSymbol

        public String getSymbol()
        Gets the symbol.
        Returns:
        the symbol
      • setSymbol

        public void setSymbol​(String symbol)
        Sets the symbol for getting the quote.
        Parameters:
        symbol -
      • getQuote

        public String getQuote()
        Gets a stock quote for the given symbol
        Returns:
        the stock quote