KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jonas_ejb > deployment > xml > TransportConfigMapping


1 /**
2  * JOnAS: Java(TM) Open Application Server
3  * Copyright (C) 1999 Bull S.A.
4  * Contact: jonas-team@objectweb.org
5  *
6  * This library is free software; you can redistribute it and/or
7  *
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or 1any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
20  * USA
21  *
22  * Initial developer: JOnAS team
23  * --------------------------------------------------------------------------
24  * $Id: TransportConfigMapping.java,v 1.3 2004/12/08 14:05:09 benoitf Exp $
25  * --------------------------------------------------------------------------
26  */

27 package org.objectweb.jonas_ejb.deployment.xml;
28
29 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
30 /**
31  * This class defines the implementation of the element transport-config
32  *
33  * @author JOnAS team
34  */

35
36 public class TransportConfigMapping extends AbsElement {
37
38     /**
39      * integrity
40      */

41     private String JavaDoc integrity = null;
42
43     /**
44      * confidentiality
45      */

46     private String JavaDoc confidentiality = null;
47
48     /**
49      * establish-trust-in-target
50      */

51     private String JavaDoc establishTrustInTarget = null;
52
53     /**
54      * establish-trust-in-client
55      */

56     private String JavaDoc establishTrustInClient = null;
57
58
59     /**
60      * @return Returns the confidentiality.
61      */

62     public String JavaDoc getConfidentiality() {
63         return confidentiality;
64     }
65     /**
66      * @param confidentiality The confidentiality to set.
67      */

68     public void setConfidentiality(String JavaDoc confidentiality) {
69         this.confidentiality = confidentiality;
70     }
71     /**
72      * @return Returns the establishTrustInClient.
73      */

74     public String JavaDoc getEstablishTrustInClient() {
75         return establishTrustInClient;
76     }
77     /**
78      * @param establishTrustInClient The establishTrustInClient to set.
79      */

80     public void setEstablishTrustInClient(String JavaDoc establishTrustInClient) {
81         this.establishTrustInClient = establishTrustInClient;
82     }
83     /**
84      * @return Returns the establishTrustInTarget.
85      */

86     public String JavaDoc getEstablishTrustInTarget() {
87         return establishTrustInTarget;
88     }
89     /**
90      * @param establishTrustInTarget The establishTrustInTarget to set.
91      */

92     public void setEstablishTrustInTarget(String JavaDoc establishTrustInTarget) {
93         this.establishTrustInTarget = establishTrustInTarget;
94     }
95     /**
96      * @return Returns the integrity.
97      */

98     public String JavaDoc getIntegrity() {
99         return integrity;
100     }
101     /**
102      * @param integrity The integrity to set.
103      */

104     public void setIntegrity(String JavaDoc integrity) {
105         this.integrity = integrity;
106     }
107
108     /**
109      * Constructor
110      */

111     public TransportConfigMapping() {
112         super();
113    }
114
115
116
117     /**
118      * Represents this element by it's XML description.
119      * @param indent use this indent for prexifing XML representation.
120      * @return the XML description of this object.
121      */

122     public String JavaDoc toXML(int indent) {
123         StringBuffer JavaDoc sb = new StringBuffer JavaDoc();
124         sb.append(indent(indent));
125         sb.append("<transport-config>\n");
126
127         indent += 2;
128
129         // integrity
130
sb.append(xmlElement(integrity, "integrity", indent));
131         // confidentiality
132
sb.append(xmlElement(confidentiality, "confidentiality", indent));
133         // establish-trust-in-target
134
sb.append(xmlElement(establishTrustInTarget, "establish-trust-in-target", indent));
135         // establish-trust-in-client
136
sb.append(xmlElement(establishTrustInClient, "establish-trust-in-client", indent));
137         indent -= 2;
138         sb.append(indent(indent));
139         sb.append("</transport-config>\n");
140
141         return sb.toString();
142     }
143 }
144
Popular Tags