KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > jaspersoft > jasperserver > irplugin > JServer


1 /*
2  * JServer.java
3  *
4  * All rights reserved.
5  * Copyright (C) 2005 JasperSoft Corporation
6  *
7  * JasperSoft Corporation
8  * 303 Second Street, Suite 450 North
9  * San Francisco, CA 94107
10  * http://www.jaspersoft.com
11  *
12  * Created on April 1, 2006, 2:08 PM
13  *
14  */

15
16 package com.jaspersoft.jasperserver.irplugin;
17
18 import com.jaspersoft.jasperserver.irplugin.wsclient.WSClient;
19
20 /**
21  *
22  * @author gtoffoli
23  */

24 public class JServer {
25     
26     
27      private String JavaDoc name;
28      private String JavaDoc url;
29      private String JavaDoc username;
30      private String JavaDoc password;
31     
32      private WSClient wSClient = null;
33      
34      private boolean loaded = false;
35      
36     /** Creates a new instance of JServer */
37     public JServer() {
38     }
39
40     public String JavaDoc getName() {
41         return name;
42     }
43
44     public void setName(String JavaDoc name) {
45         this.name = name;
46         setWSClient(null);
47     }
48
49     public String JavaDoc getUrl() {
50         return url;
51     }
52
53     public void setUrl(String JavaDoc url) {
54         this.url = url;
55         setWSClient(null);
56     }
57
58     public String JavaDoc getUsername() {
59         return username;
60     }
61
62     public void setUsername(String JavaDoc username) {
63         this.username = username;
64         setWSClient(null);
65     }
66
67     public String JavaDoc getPassword() {
68         return password;
69     }
70
71     public void setPassword(String JavaDoc password) {
72         this.password = password;
73         setWSClient(null);
74     }
75     
76     public String JavaDoc 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 JavaDoc {
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