plugins
Interface IDownloadHelper

All Known Implementing Classes:
MyConnector

public interface IDownloadHelper

Helper to download any webpage or a specific hattrick xml file


Method Summary
 java.lang.String fetchRegionID(int teamID)
          gets regionID for a team by teamID
 java.io.InputStream getFileFromWeb(java.lang.String url, boolean displaysettingsScreen)
          gets an Input Stream for a usal web file (not from hattrick )
 java.lang.String getHattrickXMLFile(java.lang.String file)
          downloads an xml File from hattrick
 java.lang.String getUsalWebPage(java.lang.String ur, boolean displaysettingsScreen)
          donwloads a usal web page (not from hattrick )
 

Method Detail

getFileFromWeb

java.io.InputStream getFileFromWeb(java.lang.String url,
                                   boolean displaysettingsScreen)
                                   throws java.io.IOException
gets an Input Stream for a usal web file (not from hattrick )

Parameters:
url - url to file http://www.natom.de
displaysettingsScreen - launch up Proxy Screen so user can set neceessary Options
Returns:
Inputstream to file
Throws:
java.io.IOException - TODO Missing Constructuor Exception Documentation

getHattrickXMLFile

java.lang.String getHattrickXMLFile(java.lang.String file)
                                    throws java.io.IOException
downloads an xml File from hattrick

Parameters:
file - ex. = /common/leagueDetails.asp?outputType=XML&actionType=view
Returns:
the complete file as String
Throws:
java.io.IOException - TODO Missing Constructuor Exception Documentation

getUsalWebPage

java.lang.String getUsalWebPage(java.lang.String ur,
                                boolean displaysettingsScreen)
                                throws java.io.IOException
donwloads a usal web page (not from hattrick )

Parameters:
ur - url to webpage http://www.natom.de
displaysettingsScreen - TODO Missing Constructuor Parameter Documentation
Returns:
website as String
Throws:
java.io.IOException - TODO Missing Constructuor Exception Documentation

fetchRegionID

java.lang.String fetchRegionID(int teamID)
gets regionID for a team by teamID

Parameters:
teamID - TODO Missing Constructuor Parameter Documentation
Returns:
TODO Missing Return Method Documentation