1 15 16 package com.jaspersoft.jasperserver.irplugin; 17 18 import com.jaspersoft.jasperserver.irplugin.wsclient.WSClient; 19 20 24 public class JServer { 25 26 27 private String name; 28 private String url; 29 private String username; 30 private String password; 31 32 private WSClient wSClient = null; 33 34 private boolean loaded = false; 35 36 37 public JServer() { 38 } 39 40 public String getName() { 41 return name; 42 } 43 44 public void setName(String name) { 45 this.name = name; 46 setWSClient(null); 47 } 48 49 public String getUrl() { 50 return url; 51 } 52 53 public void setUrl(String url) { 54 this.url = url; 55 setWSClient(null); 56 } 57 58 public String getUsername() { 59 return username; 60 } 61 62 public void setUsername(String username) { 63 this.username = username; 64 setWSClient(null); 65 } 66 67 public String getPassword() { 68 return password; 69 } 70 71 public void setPassword(String password) { 72 this.password = password; 73 setWSClient(null); 74 } 75 76 public String toString() 77 { 78 return ""+getName(); 79 } 80 81 public boolean isLoaded() { 82 return loaded; 83 } 84 85 public void setLoaded(boolean loaded) { 86 this.loaded = loaded; 87 } 88 89 public WSClient getWSClient() throws Exception { 90 if (wSClient == null) { 91 setWSClient(new WSClient(this)); 92 } 93 return wSClient; 94 } 95 96 public void setWSClient(WSClient wSClient) { 97 this.wSClient = wSClient; 98 } 99 100 101 102 } 103 | Popular Tags |