org.apache.jetspeed.webservices.finance.stockmarket
Interface StockQuoteService

All Superinterfaces:
org.apache.turbine.services.Initable, org.apache.turbine.services.Service
All Known Implementing Classes:
JetspeedStockQuoteService, JetspeedStockQuoteService2

public interface StockQuoteService
extends org.apache.turbine.services.Service

StockQuoteService provides a web service for getting stock quotes.

Version:
$Id: StockQuoteService.java,v 1.4 2004/02/23 03:15:29 jford Exp $
Author:
David Sean Taylor

Field Summary
static java.lang.String SERVICE_NAME
          The name of this service
 
Method Summary
 StockQuote fullQuote(java.lang.String symbol)
          Get a single stock quote record, given a symbol return a StockQuote object.
 StockQuote[] fullQuotes(java.lang.String[] symbol)
          Get an array of quote records, given a array of stock symbols.
 java.lang.String getWebService()
          Get the name of the web service used by this service to retrieve stock quotes.
 java.lang.String quote(java.lang.String symbol)
          Get a single stock quote, given a symbol return the current price.
 void setWebService(java.lang.String service)
          Set the name of the web service used by this service to retrieve stock quotes.
 
Methods inherited from interface org.apache.turbine.services.Service
getConfiguration, getName, getProperties, setName, setServiceBroker
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, init, init, setInitableBroker, shutdown
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
The name of this service

See Also:
Constant Field Values
Method Detail

quote

public java.lang.String quote(java.lang.String symbol)
                       throws java.rmi.RemoteException
Get a single stock quote, given a symbol return the current price.

Parameters:
symbol - The stock symbol.
Returns:
String The current price.
Throws:
java.rmi.RemoteException

fullQuote

public StockQuote fullQuote(java.lang.String symbol)
                     throws java.rmi.RemoteException
Get a single stock quote record, given a symbol return a StockQuote object.

Parameters:
symbol - The stock symbol.
Returns:
StockQuote A full stock quote record.
Throws:
java.rmi.RemoteException

fullQuotes

public StockQuote[] fullQuotes(java.lang.String[] symbol)
                        throws java.rmi.RemoteException
Get an array of quote records, given a array of stock symbols.

Returns:
StockQuote[] An array of full stock quotes for each stock symbol.
Throws:
java.rmi.RemoteException

setWebService

public void setWebService(java.lang.String service)
Set the name of the web service used by this service to retrieve stock quotes.

Parameters:
service - The name of the web service.

getWebService

public java.lang.String getWebService()
Get the name of the web service used by this service to retrieve stock quotes.

Returns:
String The name of the web service.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.