Skip to content

Commit

Permalink
fix(JobProxyCall): set uri when bibitools are set
Browse files Browse the repository at this point in the history
  • Loading branch information
pbelmann committed Nov 8, 2016
1 parent facd804 commit f05067a
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -86,7 +95,6 @@ public JobProxyCall(BiBiTools wsstools) {
// should not occure
}
}

}

public JobProxyCall(BiBiTools submitted_wsstools, Status submitted_status) {
Expand Down

0 comments on commit f05067a

Please sign in to comment.