|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectceleboss.HTMLload.HTMLDataSource
celeboss.HTMLload.WebDataSource
This class goes over the internet to the CelebDaq web site to extract details.
| Field Summary | |
static java.lang.String |
LOGINURL
|
static java.lang.String |
TRADEURL
|
| Method Summary | |
java.lang.String |
buyShares(Celebrity celebrity,
int number)
Buy shares in a Celebrity. |
protected java.io.InputStream |
getCelebrityStream(int celebrityId)
Extract the HTML details for the specified celebrity. |
protected java.io.InputStream |
getLeagueOfLeagueStream(int leagueId)
Extract the HTML details of the league of leagues . |
protected java.io.InputStream |
getLeaguesStream()
Extract the HTML details of the leagues this account is assigned. |
protected java.io.InputStream |
getLeagueStream(int leagueID)
Extract the HTML details for the specified mini league. |
protected java.io.InputStream |
getPortfolioStream()
Get the raw HTML dtaa as a stream for the portfolio |
boolean |
isLive()
This data soruce is always live since it uses the CelebDaq server |
java.lang.String |
sellShares(Celebrity celebrity,
int number)
Sell shares in a Celebrity. |
void |
setUserPassword(java.lang.String user,
java.lang.String password)
Redefine the username and password assigned to this data source |
| Methods inherited from class celeboss.HTMLload.HTMLDataSource |
getCelebrities, getLeagues, getUsername, updateCelebrity, updateLeague, updatePortfolio |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String LOGINURL
public static final java.lang.String TRADEURL
| Method Detail |
public java.lang.String buyShares(Celebrity celebrity,
int number)
throws java.io.IOException
celebrity - Celebrity to buynumber - Number to buy
java.io.IOException - Problem contacting server
protected java.io.InputStream getCelebrityStream(int celebrityId)
throws java.io.IOException
getCelebrityStream in class HTMLDataSourcecelebrityId - Issues number of the celebrity.
java.io.IOException - If a problem occurs in the reading.HTMLDataSource.updateCelebrity(Celebrity)
protected java.io.InputStream getLeagueOfLeagueStream(int leagueId)
throws java.io.IOException
getLeagueOfLeagueStream in class HTMLDataSourceleagueId - League id.
java.io.IOException - If a problem occurs in the reading.
protected java.io.InputStream getLeaguesStream()
throws java.io.IOException
getLeaguesStream in class HTMLDataSourcejava.io.IOException - If a problem occurs in the reading.
protected java.io.InputStream getLeagueStream(int leagueID)
throws java.io.IOException
getLeagueStream in class HTMLDataSourceleagueID - Issues number of the league.
java.io.IOException - If a problem occurs in the reading.HTMLDataSource.updateLeague(celeboss.data.MiniLeague)
protected java.io.InputStream getPortfolioStream()
throws java.io.IOException
getPortfolioStream in class HTMLDataSourcejava.io.IOException - if a problem occurs reading the stream.public boolean isLive()
public java.lang.String sellShares(Celebrity celebrity,
int number)
throws java.io.IOException
celebrity - Celebrity to sellnumber - Number to buy
java.io.IOException - Problem contacting web server
public void setUserPassword(java.lang.String user,
java.lang.String password)
setUserPassword in interface CelebDataSourcesetUserPassword in class HTMLDataSourceuser - New userpassword - New password
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||