|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
StockQuoteService provides a web service for getting stock quotes.
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 |
public static final java.lang.String SERVICE_NAME
Method Detail |
public java.lang.String quote(java.lang.String symbol) throws java.rmi.RemoteException
symbol
- The stock symbol.
java.rmi.RemoteException
public StockQuote fullQuote(java.lang.String symbol) throws java.rmi.RemoteException
symbol
- The stock symbol.
java.rmi.RemoteException
public StockQuote[] fullQuotes(java.lang.String[] symbol) throws java.rmi.RemoteException
java.rmi.RemoteException
public void setWebService(java.lang.String service)
service
- The name of the web service.public java.lang.String getWebService()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |