|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectceleboss.HTMLload.HTMLDataSource
This is an abstract data source based on HTML repsentation of the CelebDaq data. The actual generation of the HTML streams are provided by the implementation of the subclass.
| Constructor Summary | |
protected |
HTMLDataSource(java.lang.String username)
Create a basic HTML parser associated to the specifiec username. |
| Method Summary | |
java.util.Set |
getCelebrities()
Extract the list of known celebrity issue numbers from web server. |
protected abstract java.io.InputStream |
getCelebrityStream(int celebrityId)
This method return a HTML stream detailing the celebrity associated to the issue number. |
protected abstract java.io.InputStream |
getLeagueOfLeagueStream(int leagueId)
Returns a HTML stream detailing the League of League value for the specified league. |
java.util.Set |
getLeagues()
Extract the list of Mini leagues this user is a member. |
protected abstract java.io.InputStream |
getLeaguesStream()
This method return a HTML stream detailing the mini-leagues this account is a member. |
protected abstract java.io.InputStream |
getLeagueStream(int leagueID)
This method return a HTML stream for a mini-leagues. |
protected abstract java.io.InputStream |
getPortfolioStream()
This method return a HTML stream detailing the portfolio associated to the user account. |
java.lang.String |
getUsername()
Get the name of the user associated to this source. |
void |
setUserPassword(java.lang.String user,
java.lang.String password)
Update teh username and password assigned to this datasource |
void |
updateCelebrity(Celebrity celeb)
This method updates the specified Celebrity details with the associated data source. |
void |
updateLeague(MiniLeague league)
Update the specified league. |
void |
updatePortfolio(Portfolio portfolio)
Update the specified portfolio using this data source. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface celeboss.CelebDataSource |
buyShares, isLive, sellShares |
| Constructor Detail |
protected HTMLDataSource(java.lang.String username)
username - Name of new user.| Method Detail |
public java.util.Set getCelebrities()
throws java.io.IOException
getCelebrities in interface CelebDataSourcejava.io.IOException - Problem contacting server
protected abstract java.io.InputStream getCelebrityStream(int celebrityId)
throws java.io.IOException
celebrityId - Celebrity issue number.
java.io.IOException - Problem generating stream.
protected abstract java.io.InputStream getLeagueOfLeagueStream(int leagueId)
throws java.io.IOException
leagueId - Identifier of the league
java.io.IOException
public java.util.Set getLeagues()
throws java.io.IOException
getLeagues in interface CelebDataSourcejava.io.IOException - Problem contacting server
protected abstract java.io.InputStream getLeaguesStream()
throws java.io.IOException
java.io.IOException - Problem generating stream.
protected abstract java.io.InputStream getLeagueStream(int leagueID)
throws java.io.IOException
leagueID - League to get stream for.
java.io.IOException - Problem generating stream.
protected abstract java.io.InputStream getPortfolioStream()
throws java.io.IOException
java.io.IOException - Problem generating stream.public java.lang.String getUsername()
getUsername in interface CelebDataSource
public void setUserPassword(java.lang.String user,
java.lang.String password)
setUserPassword in interface CelebDataSourceuser - New userpassword - New Password
public void updateCelebrity(Celebrity celeb)
throws java.io.IOException
updateCelebrity in interface CelebDataSourceceleb - Entity to update.
java.io.IOException - Problem contacting server
public void updateLeague(MiniLeague league)
throws java.io.IOException
updateLeague in interface CelebDataSourceleague - League identifier.
java.io.IOException - Problem contacting server
public void updatePortfolio(Portfolio portfolio)
throws java.io.IOException
updatePortfolio in interface CelebDataSourceportfolio - Portfolio to update.
java.io.IOException - Problem contacting server
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||