KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > deployment > runtime > JavaWebStartAccessDescriptor


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 package com.sun.enterprise.deployment.runtime;
25
26 import com.sun.enterprise.deployment.BundleDescriptor;
27 import com.sun.enterprise.deployment.Descriptor;
28 /**
29  *Records information about Java Web Start access to an app client.
30  * @author tjquinn
31  */

32 public class JavaWebStartAccessDescriptor extends Descriptor {
33     
34     private BundleDescriptor bundleDescriptor;
35     
36     /** Creates a new instance of JavaWebStartAccessDescriptor */
37     public JavaWebStartAccessDescriptor() {
38     }
39
40     /**
41      * Holds value of property eligible.
42      */

43     private boolean eligible = true;
44
45     /**
46      * Getter for property eligible.
47      * @return Value of property eligible.
48      */

49     public boolean isEligible() {
50
51         return this.eligible;
52     }
53
54     /**
55      * Setter for property eligible.
56      * @param eligible New value of property eligible.
57      */

58     public void setEligible(boolean eligible) {
59
60         this.eligible = eligible;
61     }
62
63     /**
64      * Holds value of property contextRoot.
65      */

66     private String JavaDoc contextRoot = null;
67
68     /**
69      * Getter for property contextRoot.
70      * @return Value of property contextRoot.
71      */

72     public String JavaDoc getContextRoot() {
73
74         return this.contextRoot;
75     }
76
77     /**
78      * Setter for property contextRoot.
79      * @param contextRoot New value of property contextRoot.
80      */

81     public void setContextRoot(String JavaDoc contextRoot) {
82
83         this.contextRoot = contextRoot;
84     }
85     
86     /**
87      * Holds value of property vendor.
88      */

89     private String JavaDoc vendor = null;
90
91     /**
92      * Getter for property vendor.
93      * @return Value of property vendor.
94      */

95     public String JavaDoc getVendor() {
96
97         return this.vendor;
98     }
99
100     /**
101      * Setter for property vendor.
102      * @param contextRoot New value of property vendor.
103      */

104     public void setVendor(String JavaDoc vendor) {
105
106         this.vendor = vendor;
107     }
108     
109     public void setBundleDescriptor(BundleDescriptor bundle) {
110         bundleDescriptor = bundle;
111     }
112
113     public BundleDescriptor getBundleDescriptor() {
114         return bundleDescriptor;
115     }
116
117     
118 }
119
Popular Tags