1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class TransportConfigMapping extends AbsElement { 37 38 41 private String integrity = null; 42 43 46 private String confidentiality = null; 47 48 51 private String establishTrustInTarget = null; 52 53 56 private String establishTrustInClient = null; 57 58 59 62 public String getConfidentiality() { 63 return confidentiality; 64 } 65 68 public void setConfidentiality(String confidentiality) { 69 this.confidentiality = confidentiality; 70 } 71 74 public String getEstablishTrustInClient() { 75 return establishTrustInClient; 76 } 77 80 public void setEstablishTrustInClient(String establishTrustInClient) { 81 this.establishTrustInClient = establishTrustInClient; 82 } 83 86 public String getEstablishTrustInTarget() { 87 return establishTrustInTarget; 88 } 89 92 public void setEstablishTrustInTarget(String establishTrustInTarget) { 93 this.establishTrustInTarget = establishTrustInTarget; 94 } 95 98 public String getIntegrity() { 99 return integrity; 100 } 101 104 public void setIntegrity(String integrity) { 105 this.integrity = integrity; 106 } 107 108 111 public TransportConfigMapping() { 112 super(); 113 } 114 115 116 117 122 public String toXML(int indent) { 123 StringBuffer sb = new StringBuffer (); 124 sb.append(indent(indent)); 125 sb.append("<transport-config>\n"); 126 127 indent += 2; 128 129 sb.append(xmlElement(integrity, "integrity", indent)); 131 sb.append(xmlElement(confidentiality, "confidentiality", indent)); 133 sb.append(xmlElement(establishTrustInTarget, "establish-trust-in-target", indent)); 135 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 |