org.apache.jetspeed.webservices.finance.stockmarket
Class JetspeedStockQuoteService2
java.lang.Object
org.apache.turbine.services.BaseInitable
org.apache.turbine.services.BaseService
org.apache.turbine.services.TurbineBaseService
org.apache.jetspeed.webservices.finance.stockmarket.JetspeedStockQuoteService2
- All Implemented Interfaces:
- org.apache.turbine.services.Initable, org.apache.turbine.services.Service, StockQuoteService
- public class JetspeedStockQuoteService2
- extends org.apache.turbine.services.TurbineBaseService
- implements StockQuoteService
Implements StockQuoteService,
providing a web service for getting stock quotes.
- Version:
- $Id: JetspeedStockQuoteService2.java,v 1.1 2005/04/12 23:16:08 taylor Exp $
- Author:
- David Sean Taylor
Fields inherited from class org.apache.turbine.services.BaseService |
configuration, name, properties, serviceBroker |
Fields inherited from class org.apache.turbine.services.BaseInitable |
initableBroker, isInitialized |
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[] symbols)
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. |
void |
init(javax.servlet.ServletConfig conf)
|
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 class org.apache.turbine.services.TurbineBaseService |
init, init, init, shutdown |
Methods inherited from class org.apache.turbine.services.BaseService |
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker |
Methods inherited from class org.apache.turbine.services.BaseInitable |
getInit, getInitableBroker, setInit, setInitableBroker |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
JetspeedStockQuoteService2
public JetspeedStockQuoteService2()
init
public void init(javax.servlet.ServletConfig conf)
throws org.apache.turbine.services.InitializationException
- Throws:
org.apache.turbine.services.InitializationException
quote
public java.lang.String quote(java.lang.String symbol)
throws java.rmi.RemoteException
- Description copied from interface:
StockQuoteService
- Get a single stock quote, given a symbol return the current price.
- Specified by:
quote
in interface StockQuoteService
- 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
- Description copied from interface:
StockQuoteService
- Get a single stock quote record, given a symbol return a StockQuote object.
- Specified by:
fullQuote
in interface StockQuoteService
- Parameters:
symbol
- The stock symbol.
- Returns:
- StockQuote A full stock quote record.
- Throws:
java.rmi.RemoteException
fullQuotes
public StockQuote[] fullQuotes(java.lang.String[] symbols)
throws java.rmi.RemoteException
- Description copied from interface:
StockQuoteService
- Get an array of quote records, given a array of stock symbols.
- Specified by:
fullQuotes
in interface StockQuoteService
- Returns:
- StockQuote[] An array of full stock quotes for each stock symbol.
- Throws:
java.rmi.RemoteException
setWebService
public void setWebService(java.lang.String service)
- Description copied from interface:
StockQuoteService
- Set the name of the web service used by this service to retrieve stock quotes.
- Specified by:
setWebService
in interface StockQuoteService
- Parameters:
service
- The name of the web service.
getWebService
public java.lang.String getWebService()
- Description copied from interface:
StockQuoteService
- Get the name of the web service used by this service to retrieve stock quotes.
- Specified by:
getWebService
in interface StockQuoteService
- Returns:
- String The name of the web service.
Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.