From c5c878822756ec7e14c5aec19c92fbc21f87f669 Mon Sep 17 00:00:00 2001 From: Noah Levitt Date: Wed, 22 Jan 2014 16:01:21 -0800 Subject: [PATCH] make http proxy port configurable in cxml, avoiding this: org.springframework.beans.NotWritablePropertyException: Invalid property 'httpProxyPort' of bean class [org.archive.modules.fetcher.FetchHTTP]: Bean property 'httpProxyPort' is not writable or has an invalid setter method. Did you mean 'httpProxyHost'? --- .../src/main/java/org/archive/modules/fetcher/FetchHTTP.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/src/main/java/org/archive/modules/fetcher/FetchHTTP.java b/modules/src/main/java/org/archive/modules/fetcher/FetchHTTP.java index e7c94eec..16d124a2 100644 --- a/modules/src/main/java/org/archive/modules/fetcher/FetchHTTP.java +++ b/modules/src/main/java/org/archive/modules/fetcher/FetchHTTP.java @@ -318,8 +318,8 @@ public class FetchHTTP extends Processor implements Lifecycle { /** * Proxy port (set only if needed). */ - public void setHttpProxyPort(int port) { - kp.put("httpProxyPort",port); + public void setHttpProxyPort(Integer port) { + kp.put("httpProxyPort", port); } public String getHttpProxyUser() {