KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > rift > coad > lib > deployment > WebServiceInfo


1 /*
2  * CoadunationLib: The coaduntion implementation library.
3  * Copyright (C) 2006 Rift IT Contracting
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  *
19  * XMLConfigurationException.java
20  *
21  * WebServiceInfo.java
22  *
23  * The class containing the web service information
24  */

25
26 package com.rift.coad.lib.deployment;
27
28 /**
29  * This class contains web service information
30  *
31  * @author Brett Chaldecott
32  */

33 public class WebServiceInfo {
34     
35     // member variables
36
private String JavaDoc path = null;
37     private String JavaDoc className = null;
38     private String JavaDoc wsdlPath = null;
39     private String JavaDoc role = null;
40     private boolean transaction = false;
41     
42     
43     /**
44      * Creates a new instance of WebServiceInfo
45      */

46     public WebServiceInfo() {
47     }
48     
49     
50     /**
51      * The getter method for the path.
52      *
53      * @return The string containing the path information.
54      */

55     public String JavaDoc getPath() {
56         return path;
57     }
58     
59     
60     /**
61      * This method will set the path information for the web service.
62      *
63      * @param path The path the web service will be available on.
64      */

65     public void setPath(String JavaDoc path) {
66         this.path = path;
67     }
68     
69     
70     /**
71      * This getter method for the class name.
72      *
73      * @return The class name.
74      */

75     public String JavaDoc getClassName() {
76         return className;
77     }
78     
79     
80     /**
81      * The method responsible for setting the class name.
82      *
83      * @param className The name of the class to set.
84      */

85     public void setClassName(String JavaDoc className) {
86         this.className = className;
87     }
88     
89     
90     /**
91      * This method will return the path to the WSDL file
92      *
93      * @return The string containing the wsdl path.
94      */

95     public String JavaDoc getWSDLPath() {
96         return wsdlPath;
97     }
98     
99     
100     /**
101      * The method responsible for setting the path to the WSDL file.
102      *
103      * @param WSDLPath The name of the target to set.
104      */

105     public void setWSDLPath(String JavaDoc wsdlPath) {
106         this.wsdlPath = wsdlPath;
107     }
108     
109     
110     /**
111      * The role information
112      *
113      * @return The name of the role for this web service.
114      */

115     public String JavaDoc getRole() {
116         return role;
117     }
118     
119     
120     /**
121      * This method sets the role information.
122      *
123      * @param role The role that the web service will run as.
124      */

125     public void setRole(String JavaDoc role) {
126         this.role = role;
127     }
128     
129     
130     /**
131      * This method returns true if the container must control the transaction.
132      *
133      * @return TRUE if it must control the transaction.
134      */

135     public boolean getTransaction() {
136         return transaction;
137     }
138     
139     
140     /**
141      * This method sets the transaction
142      *
143      * @param TRUE if this container must control the transaction.
144      */

145     public void setTransaction(boolean transaction) {
146         this.transaction = transaction;
147     }
148     
149     
150     /**
151      * This method will return true if all values have been correctly initialized
152      *
153      * @return TRUE if all values have been initialized.
154      */

155     public boolean isInitialized() {
156         if ((this.className != null) && (this.path != null) &&
157                 (this.role != null) && (this.wsdlPath != null)) {
158             return true;
159         }
160         return false;
161     }
162     
163 }
164
Popular Tags