00001
00027 package org.objectweb.jonas_ejb.deployment.xml;
00028
00029 import org.objectweb.jonas_lib.deployment.xml.AbsElement;
00036 public class TransportConfigMapping extends AbsElement {
00037
00041 private String integrity = null;
00042
00046 private String confidentiality = null;
00047
00051 private String establishTrustInTarget = null;
00052
00056 private String establishTrustInClient = null;
00057
00058
00062 public String getConfidentiality() {
00063 return confidentiality;
00064 }
00068 public void setConfidentiality(String confidentiality) {
00069 this.confidentiality = confidentiality;
00070 }
00074 public String getEstablishTrustInClient() {
00075 return establishTrustInClient;
00076 }
00080 public void setEstablishTrustInClient(String establishTrustInClient) {
00081 this.establishTrustInClient = establishTrustInClient;
00082 }
00086 public String getEstablishTrustInTarget() {
00087 return establishTrustInTarget;
00088 }
00092 public void setEstablishTrustInTarget(String establishTrustInTarget) {
00093 this.establishTrustInTarget = establishTrustInTarget;
00094 }
00098 public String getIntegrity() {
00099 return integrity;
00100 }
00104 public void setIntegrity(String integrity) {
00105 this.integrity = integrity;
00106 }
00107
00111 public TransportConfigMapping() {
00112 super();
00113 }
00114
00115
00116
00122 public String toXML(int indent) {
00123 StringBuffer sb = new StringBuffer();
00124 sb.append(indent(indent));
00125 sb.append("<transport-config>\n");
00126
00127 indent += 2;
00128
00129
00130 sb.append(xmlElement(integrity, "integrity", indent));
00131
00132 sb.append(xmlElement(confidentiality, "confidentiality", indent));
00133
00134 sb.append(xmlElement(establishTrustInTarget, "establish-trust-in-target", indent));
00135
00136 sb.append(xmlElement(establishTrustInClient, "establish-trust-in-client", indent));
00137 indent -= 2;
00138 sb.append(indent(indent));
00139 sb.append("</transport-config>\n");
00140
00141 return sb.toString();
00142 }
00143 }