diff options
Diffstat (limited to 'client/trunk/src/com/fourisland/instadisc/XmlRpc.java')
| -rw-r--r-- | client/trunk/src/com/fourisland/instadisc/XmlRpc.java | 16 |
1 files changed, 2 insertions, 14 deletions
| diff --git a/client/trunk/src/com/fourisland/instadisc/XmlRpc.java b/client/trunk/src/com/fourisland/instadisc/XmlRpc.java index 86bff6f..e8b2d94 100644 --- a/client/trunk/src/com/fourisland/instadisc/XmlRpc.java +++ b/client/trunk/src/com/fourisland/instadisc/XmlRpc.java | |||
| @@ -23,22 +23,9 @@ public class XmlRpc { | |||
| 23 | private String function; | 23 | private String function; |
| 24 | private Object[] params; | 24 | private Object[] params; |
| 25 | private int step = 3; | 25 | private int step = 3; |
| 26 | private String url; | ||
| 27 | 26 | ||
| 28 | public XmlRpc(String function) { | 27 | public XmlRpc(String function) { |
| 29 | this.function = function; | 28 | this.function = function; |
| 30 | this.url = "http://central.fourisland.com/xmlrpc.php"; | ||
| 31 | |||
| 32 | Verification ver = new Verification(); | ||
| 33 | params = new Object[3]; | ||
| 34 | params[0] = ver.getUsername(); | ||
| 35 | params[1] = ver.getHash(); | ||
| 36 | params[2] = ver.getID(); | ||
| 37 | } | ||
| 38 | |||
| 39 | public XmlRpc(String url, String function) { | ||
| 40 | this.function = function; | ||
| 41 | this.url = url; | ||
| 42 | 29 | ||
| 43 | Verification ver = new Verification(); | 30 | Verification ver = new Verification(); |
| 44 | params = new Object[3]; | 31 | params = new Object[3]; |
| @@ -76,7 +63,7 @@ public class XmlRpc { | |||
| 76 | Object result = null; | 63 | Object result = null; |
| 77 | try { | 64 | try { |
| 78 | XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); | 65 | XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl(); |
| 79 | config.setServerURL(new URL("http://central.fourisland.com/xmlrpc.php")); | 66 | config.setServerURL(new URL("http://rpc.instadisc.org/")); |
| 80 | XmlRpcClient client = new XmlRpcClient(); | 67 | XmlRpcClient client = new XmlRpcClient(); |
| 81 | client.setConfig(config); | 68 | client.setConfig(config); |
| 82 | 69 | ||
| @@ -92,5 +79,6 @@ public class XmlRpc { | |||
| 92 | public void resetParams() | 79 | public void resetParams() |
| 93 | { | 80 | { |
| 94 | params = new Object[] {}; | 81 | params = new Object[] {}; |
| 82 | step = 0; | ||
| 95 | } | 83 | } |
| 96 | } | 84 | } |
