package pl.pronux.sokker.downloader.xml;

import java.io.IOException;

import pl.pronux.sokker.downloader.SokkerAuthentication;

public class XMLDownloader extends SokkerAuthentication {

	public XMLDownloader() {
	}

	public String getTrainers() throws IOException {
		return getXML("http://217.17.40.90/xml/trainers.xml"); 
	}

	public String getCountries() throws IOException {
		return getXML("http://217.17.40.90/xml/countries.xml"); 
	}

	public String getCountry(String countryID) throws IOException  {
		return getXML("http://217.17.40.90/xml/country-" + countryID + ".xml");  
	}

	public String getJuniors() throws IOException  {
		return getXML("http://217.17.40.90/xml/juniors.xml"); 
	}

	public String getLeague(String leagueID) throws IOException  {
		return getXML("http://217.17.40.90/xml/league-" + leagueID + ".xml");  
	}

	public String getLeague(String countryID, String division, String number) throws IOException  {
		return getXML("http://217.17.40.90/xml/league-" + countryID + "-" + division + "-" + number + ".xml");    
	}

	public String getMatch(String matchID) throws IOException {
		return getXML("http://217.17.40.90/xml/match-" + matchID + ".xml");  
	}

	public String getLeagueMatches(String leagueID, String round) throws IOException  {
		return getXML("http://217.17.40.90/xml/matches-league-" + leagueID + "-" + round + ".xml");   
	}

	public String getMatchesTeam(String teamID) throws IOException  {
		return getXML("http://217.17.40.90/xml/matches-team-" + teamID + ".xml");  
	}

	public String getPlayer(String playerID) throws IOException {
		return getXML("http://217.17.40.90/xml/player-" + playerID + ".xml");  
	}

	public String getPlayers(String teamID) throws IOException  {
		return getXML("http://217.17.40.90/xml/players-" + teamID + ".xml");  
	}

	public String getRegion(String regionID) throws IOException {
		return getXML("http://217.17.40.90/xml/region-" + regionID + ".xml");  
	}

	public String getRegions(String countryID) throws IOException{
		return getXML("http://217.17.40.90/xml/regions-" + countryID + ".xml");  
	}

	public String getReports() throws IOException {
		return getXML("http://217.17.40.90/xml/reports.xml"); 
	}

	public String getTeam(String teamID) throws IOException {
		return getXML("http://217.17.40.90/xml/team-" + teamID + ".xml");  
	}

	public String getTransfers() throws IOException {
		return getXML("http://217.17.40.90/xml/transfers.xml"); 
	}

	public String getVars() throws IOException {
		return getXML("http://217.17.40.90/xml/vars.xml"); 
	}

}
@@ -181,16 +181,93 @@
 tion %7B%0A%0A
+%09private final static String SOKKER_URL = %22http://online.sokker.org/xml/%22;%0A%09%0A
 %09public 
@@ -358,33 +358,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 trai
@@ -460,33 +460,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 coun
@@ -578,33 +578,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 coun
@@ -697,33 +697,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 juni
@@ -811,33 +811,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 leag
@@ -975,33 +975,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 leag
@@ -1138,33 +1138,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 matc
@@ -1288,33 +1288,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 matc
@@ -1445,33 +1445,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 matc
@@ -1579,33 +1579,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 play
@@ -1709,33 +1709,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 play
@@ -1838,33 +1838,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 regi
@@ -1969,33 +1969,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 regi
@@ -2087,33 +2087,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 repo
@@ -2196,33 +2196,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 team
@@ -2310,33 +2310,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 tran
@@ -2408,33 +2408,22 @@
 XML(
-%22http://217.17.40.90/xml/
+SOKKER_URL + %22
 vars

change url of sokker xml files