1/*2 * Copyright 2000-2001,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.webservices.finance.stockmarket;
1819import org.apache.turbine.services.Service;
20import java.rmi.RemoteException;
2122/***23 StockQuoteService provides a web service for getting stock quotes.2425 @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>26 @version $Id: StockQuoteService.java,v 1.4 2004/02/23 03:15:29 jford Exp $27*/2829publicinterfaceStockQuoteServiceextends Service
30 {
31/*** The name of this service */32public String SERVICE_NAME = "StockQuoteService";
333435/***36 Get a single stock quote, given a symbol return the current price.3738 @param symbol The stock symbol.39 @return String The current price.40 */41public String quote( String symbol )
42 throws RemoteException;
4344/***45 Get a single stock quote record, given a symbol return a StockQuote object.4647 @param symbol The stock symbol.48 @return StockQuote A full stock quote record.49 */5051publicStockQuote fullQuote( String symbol )
52 throws RemoteException;
5354/***55 Get an array of quote records, given a array of stock symbols.5657 @param symbols[] The array of stock symbols.58 @return StockQuote[] An array of full stock quotes for each stock symbol.59 */60publicStockQuote[] fullQuotes( String [] symbol )
61 throws RemoteException;
6263/***64 Set the name of the web service used by this service to retrieve stock quotes.6566 @param service The name of the web service.67 */68publicvoid setWebService( String service );
6970/***71 Get the name of the web service used by this service to retrieve stock quotes.7273 @return String The name of the web service.74 */75public String getWebService();
7677 }