Change port to integer

This commit is contained in:
Stuart Boston
2013-11-27 10:46:17 +00:00
parent cd09cf8dfe
commit 121838598d
2 changed files with 4 additions and 4 deletions
@@ -163,7 +163,7 @@ public class TheMovieDbApi {
* @param username
* @param password
*/
public void setProxy(String host, String port, String username, String password) {
public void setProxy(String host, int port, String username, String password) {
// should be set in HTTP client already
if (httpClient != null) {
return;
@@ -47,7 +47,7 @@ public final class WebBrowser {
private static final Map<String, String> BROWSER_PROPERTIES = new HashMap<String, String>();
private static final Map<String, Map<String, String>> COOKIES = new HashMap<String, Map<String, String>>();
private static String proxyHost = null;
private static String proxyPort = null;
private static int proxyPort = 0;
private static String proxyUsername = null;
private static String proxyPassword = null;
private static String proxyEncodedPassword = null;
@@ -278,11 +278,11 @@ public final class WebBrowser {
WebBrowser.proxyHost = myProxyHost;
}
public static String getProxyPort() {
public static int getProxyPort() {
return proxyPort;
}
public static void setProxyPort(String myProxyPort) {
public static void setProxyPort(int myProxyPort) {
WebBrowser.proxyPort = myProxyPort;
}