From f05067a9566b0017983cc17fc040fe66fd9e1ee3 Mon Sep 17 00:00:00 2001 From: pbelmann Date: Tue, 8 Nov 2016 10:00:25 +0100 Subject: [PATCH] fix(JobProxyCall): set uri when bibitools are set --- .../de/unibi/techfak/bibiserv/impl/JobProxyCall.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/libs/bibitools/src/main/java/de/unibi/techfak/bibiserv/impl/JobProxyCall.java b/libs/bibitools/src/main/java/de/unibi/techfak/bibiserv/impl/JobProxyCall.java index 6a0fd9b..a826e86 100644 --- a/libs/bibitools/src/main/java/de/unibi/techfak/bibiserv/impl/JobProxyCall.java +++ b/libs/bibitools/src/main/java/de/unibi/techfak/bibiserv/impl/JobProxyCall.java @@ -75,7 +75,16 @@ public JobProxyCall() { */ public JobProxyCall(BiBiTools wsstools) { this(wsstools, wsstools.getStatus()); - // get servr JobProxyServer from + setUri(wsstools); + } + + @Override + public void setBiBiTools(BiBiTools bibitools) { + super.setBiBiTools(bibitools); + setUri(bibitools); + } + + private void setUri(BiBiTools biBiTools){ try { uri = new URI(wsstools.getProperty("JobProxyServer.URI", "http://localhost:9999/")); } catch (URISyntaxException e) { @@ -86,7 +95,6 @@ public JobProxyCall(BiBiTools wsstools) { // should not occure } } - } public JobProxyCall(BiBiTools submitted_wsstools, Status submitted_status) {