KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > common > dd > LoginConfig


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /**
25  * This generated bean class LoginConfig matches the schema element login-config
26  *
27  * Generated on Wed Aug 13 12:12:26 PDT 2003
28  */

29
30 package com.sun.enterprise.tools.common.dd;
31
32 import org.w3c.dom.*;
33 import org.netbeans.modules.schema2beans.*;
34 import java.beans.*;
35 import java.util.*;
36
37 // BEGIN_NOI18N
38

39 public class LoginConfig extends com.sun.enterprise.tools.common.dd.SunBaseBean
40 {
41
42     static Vector comparators = new Vector();
43
44     static public final String JavaDoc AUTH_METHOD = "AuthMethod"; // NOI18N
45

46     public LoginConfig() {
47         this(Common.USE_DEFAULT_VALUES);
48     }
49
50     public LoginConfig(int options)
51     {
52         super(comparators, new org.netbeans.modules.schema2beans.Version(1, 2, 0));
53         // Properties (see root bean comments for the bean graph)
54
this.createProperty("auth-method", // NOI18N
55
AUTH_METHOD,
56             Common.TYPE_1 | Common.TYPE_STRING | Common.TYPE_KEY,
57             String JavaDoc.class);
58         this.initialize(options);
59     }
60
61     // Setting the default values of the properties
62
void initialize(int options)
63     {
64     
65     }
66
67     // This attribute is mandatory
68
public void setAuthMethod(String JavaDoc value) {
69         this.setValue(AUTH_METHOD, value);
70     }
71
72     //
73
public String JavaDoc getAuthMethod() {
74         return (String JavaDoc)this.getValue(AUTH_METHOD);
75     }
76
77     //
78
public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
79         comparators.add(c);
80     }
81
82     //
83
public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) {
84         comparators.remove(c);
85     }
86     public void validate() throws org.netbeans.modules.schema2beans.ValidateException {
87         boolean restrictionFailure = false;
88         // Validating property authMethod
89
if (getAuthMethod() == null) {
90             throw new org.netbeans.modules.schema2beans.ValidateException("getAuthMethod() == null", "authMethod", this); // NOI18N
91
}
92     }
93
94     // Dump the content of this bean returning it as a String
95
public void dump(StringBuffer JavaDoc str, String JavaDoc indent){
96         String JavaDoc s;
97         Object JavaDoc o;
98         org.netbeans.modules.schema2beans.BaseBean n;
99         str.append(indent);
100         str.append("AuthMethod"); // NOI18N
101
str.append(indent+"\t"); // NOI18N
102
str.append("<"); // NOI18N
103
s = this.getAuthMethod();
104         str.append((s==null?"null":s.trim())); // NOI18N
105
str.append(">\n"); // NOI18N
106
this.dumpAttributes(AUTH_METHOD, 0, str, indent);
107
108     }
109     public String JavaDoc dumpBeanNode(){
110         StringBuffer JavaDoc str = new StringBuffer JavaDoc();
111         str.append("LoginConfig\n"); // NOI18N
112
this.dump(str, "\n "); // NOI18N
113
return str.toString();
114     }}
115
116 // END_NOI18N
117

118
119 /*
120         The following schema file has been used for generation:
121
122 <!--
123 This is the root element which binds an ejb reference to a jndi name.
124 -->
125 <!ELEMENT ejb-ref (ejb-ref-name, jndi-name)>
126
127 <!--
128 This node holds all the runtime bindings of a resource env reference.
129 -->
130 <!ELEMENT resource-env-ref ( resource-env-ref-name, jndi-name )>
131
132 <!--
133 This node holds all the runtime bindings of a resource reference.
134 -->
135 <!ELEMENT resource-ref (res-ref-name, jndi-name, default-resource-principal?)>
136
137 <!ELEMENT default-resource-principal (name, password)>
138
139 <!ELEMENT security-role-mapping (role-name, (principal-name | group-name)+)>
140
141 <!--
142 Information about a web service endpoint.
143 -->
144 <!ELEMENT webservice-endpoint ( port-component-name, endpoint-address-uri?, login-config?, transport-guarantee?, service-qname?, tie-class?, servlet-impl-class? )>
145
146 <!--
147 Optional authentication configuration for an EJB web service endpoint.
148 Not needed for servet web service endpoints. Their security configuration
149 is contained in the standard web application descriptor.
150 -->
151 <!ELEMENT login-config ( auth-method )>
152
153 <!--
154 The service-qname element declares the specific WSDL service
155 element that is being refered to. It is not set by the deployer.
156 It is derived during deployment.
157 -->
158 <!ELEMENT service-qname (namespaceURI, localpart)>
159
160 <!--
161 Runtime information about a web service.
162 wsdl-publish-location is optionally used to specify
163 where the final wsdl and any dependent files should be stored. This location
164 resides on the file system from which deployment is initiated.
165 -->
166 <!ELEMENT webservice-description ( webservice-description-name, wsdl-publish-location? )>
167
168 <!--
169 Runtime settings for a web service reference. In the simplest case,
170 there is no runtime information required for a service ref. Runtime info
171 is only needed in the following cases :
172  * to define the port that should be used to resolve a container-managed port
173  * to define default Stub/Call property settings for Stub objects
174  * to define the URL of a final WSDL document to be used instead of
175 the one packaged with a service-ref
176 -->
177 <!ELEMENT service-ref ( service-ref-name, port-info*, call-property*, wsdl-override?, service-impl-class?, service-qname? )>
178
179 <!--
180 Information for a port within a service-reference.
181
182 Either service-endpoint-interface or wsdl-port or both
183 (service-endpoint-interface and wsdl-port) should be specified.
184
185 If both are specified, wsdl-port represents the
186 port the container should choose for container-managed port selection.
187
188 The same wsdl-port value must not appear in
189 more than one port-info entry within the same service-ref.
190
191 If a particular service-endpoint-interface is using container-managed port
192 selection, it must not appear in more than one port-info entry
193 within the same service-ref.
194 -->
195 <!ELEMENT port-info ( service-endpoint-interface?, wsdl-port?, stub-property*, call-property* )>
196
197 <!--
198 Port used in port-info.
199 -->
200 <!ELEMENT wsdl-port ( namespaceURI, localpart )>
201
202 <!--
203 JAXRPC property values that should be set on a stub before it's returned to
204 to the web service client. The property names can be any properties supported
205 by the JAXRPC Stub implementation. See javadoc for javax.xml.rpc.Stub
206 -->
207 <!ELEMENT stub-property ( name, value )>
208
209 <!--
210 JAXRPC property values that should be set on a Call object before it's
211 returned to the web service client. The property names can be any
212 properties supported by the JAXRPC Call implementation. See javadoc
213 for javax.xml.rpc.Call
214 -->
215 <!ELEMENT call-property ( name, value )>
216
217 <!--
218 This info is used only by studio plug-in;it is NOT the part of the orgianl DTD.
219 Used by plugin to store parameters needed to execute an Application client.
220 -->
221 <!ELEMENT plugin-data ( auto-generate-sql?, client-jar-path?, client-args? )>
222 <!ELEMENT auto-generate-sql (#PCDATA)>
223 <!ELEMENT client-jar-path (#PCDATA)>
224 <!ELEMENT client-args (#PCDATA)>
225
226 <!--
227 The ejb ref name locates the name of the ejb reference in the application.
228 -->
229 <!ELEMENT ejb-ref-name (#PCDATA)>
230
231 <!--
232 The text in this node is a jndi name.
233 -->
234 <!ELEMENT jndi-name (#PCDATA)>
235
236 <!--
237 The name of a resource env reference.
238 -->
239 <!ELEMENT resource-env-ref-name (#PCDATA)>
240
241 <!--
242 The name of a resource reference.
243 -->
244 <!ELEMENT res-ref-name (#PCDATA)>
245
246 <!--
247 This text nodes holds a name string.
248 -->
249 <!ELEMENT name (#PCDATA)>
250
251 <!--
252 This element holds password text.
253 -->
254 <!ELEMENT password (#PCDATA)>
255
256 <!ELEMENT role-name (#PCDATA)>
257
258 <!ELEMENT principal-name (#PCDATA)>
259
260 <!ELEMENT group-name (#PCDATA)>
261
262 <!--
263 Unique name of a port component within a module
264 -->
265 <!ELEMENT port-component-name ( #PCDATA )>
266
267 <!--
268 Relative path combined with web server root to form fully qualified
269 endpoint address for a web service endpoint. For servlet endpoints, this
270 value is relative to the servlet's web application context root. In
271 all cases, this value must be a fixed pattern(i.e. no "*" allowed).
272 If the web service endpoint is a servlet that only implements a single
273 endpoint has only one url-pattern, it is not necessary to set
274 this value since the container can derive it from web.xml.
275 -->
276 <!ELEMENT endpoint-address-uri ( #PCDATA )>
277
278 <!--
279 The namespaceURI element indicates a URI.
280 -->
281 <!ELEMENT namespaceURI (#PCDATA)>
282
283 <!--
284 The localpart element indicates the local part of a QNAME.
285 -->
286 <!ELEMENT localpart (#PCDATA)>
287
288 <!--
289 auth-method element describes the authentication method. The only supported value
290 is USERNAME_PASSWORD
291 -->
292 <!ELEMENT auth-method ( #PCDATA )>
293
294 <!--
295 Specifies that the communication between client and server should
296 be NONE, INTEGRAL, or CONFIDENTIAL. NONE means that the application
297 does not require any transport guarantees. A value of INTEGRAL means
298 that the application requires that the data sent between the client
299 and server be sent in such a way that it can't be changed in transit.
300 CONFIDENTIAL means that the application requires that the data be
301 transmitted in a fashion that prevents other entities from observing
302 the contents of the transmission. In most cases, the presence of the
303 INTEGRAL or CONFIDENTIAL flag will indicate that the use of SSL is
304 required.
305 -->
306 <!ELEMENT transport-guarantee ( #PCDATA )>
307
308 <!--
309 The name of tie implementation class for a port-component. This is
310 not specified by the deployer. It is derived during deployment.
311 -->
312 <!ELEMENT tie-class (#PCDATA)>
313
314 <!--
315 Name of application-written servlet impl class contained in deployed war.
316 This is not set by the deployer. It is derived by the container
317 during deployment.
318 -->
319 <!ELEMENT servlet-impl-class (#PCDATA)>
320
321 <!--
322 Unique name of a webservice within a module
323 -->
324 <!ELEMENT webservice-description-name ( #PCDATA )>
325
326 <!--
327 file: URL of a directory to which a web-service-description's wsdl should be
328 published during deployment. Any required files will be published to this
329 directory, preserving their location relative to the module-specific
330 wsdl directory(META-INF/wsdl or WEB-INF/wsdl).
331
332 Example :
333
334   For an ejb.jar whose webservices.xml wsdl-file element contains
335     META-INF/wsdl/a/Foo.wsdl
336
337   <wsdl-publish-location>file:/home/user1/publish
338   </wsdl-publish-location>
339
340   The final wsdl will be stored in /home/user1/publish/a/Foo.wsdl
341 -->
342 <!ELEMENT wsdl-publish-location ( #PCDATA )>
343
344 <!--
345 Coded name (relative to java:comp/env) for a service-reference
346 -->
347 <!ELEMENT service-ref-name ( #PCDATA )>
348
349 <!--
350 Fully qualified name of service endpoint interface
351 -->
352 <!ELEMENT service-endpoint-interface ( #PCDATA )>
353
354 <!--
355 This text nodes holds a value string.
356 -->
357 <!ELEMENT value (#PCDATA)>
358
359 <!--
360 This is a valid URL pointing to a final WSDL document. It is optional.
361 If specified, the WSDL document at this URL will be used during
362 deployment instead of the WSDL document associated with the
363 service-ref in the standard deployment descriptor.
364
365 Examples :
366
367   // available via HTTP
368   <wsdl-override>http://localhost:8000/myservice/myport?WSDL</wsdl-override>
369
370   // in a file
371   <wsdl-override>file:/home/user1/myfinalwsdl.wsdl</wsdl-override>
372 -->
373 <!ELEMENT wsdl-override ( #PCDATA )>
374
375 <!--
376 Name of generated service implementation class. This is not set by the
377 deployer. It is derived during deployment.
378 -->
379 <!ELEMENT service-impl-class ( #PCDATA )>
380
381 <!--
382 This node holds information about a logical message destination
383 -->
384 <!ELEMENT message-destination (message-destination-name, jndi-name)>
385
386 <!--
387 This node holds the name of a logical message destination
388 -->
389 <!ELEMENT message-destination-name (#PCDATA)>
390
391 */

392
Popular Tags