1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class IorSecurityConfigMapping extends AbsElement { 37 38 41 private TransportConfigMapping transportConfig = null; 42 43 46 private AsContextMapping asContext = null; 47 48 51 private SasContextMapping sasContext = null; 52 53 54 57 public IorSecurityConfigMapping() { 58 super(); 59 } 60 61 64 public AsContextMapping getAsContext() { 65 return asContext; 66 } 67 70 public void setAsContext(AsContextMapping asContext) { 71 this.asContext = asContext; 72 } 73 76 public SasContextMapping getSasContext() { 77 return sasContext; 78 } 79 82 public void setSasContext(SasContextMapping sasContext) { 83 this.sasContext = sasContext; 84 } 85 88 public TransportConfigMapping getTransportConfig() { 89 return transportConfig; 90 } 91 94 public void setTransportConfig(TransportConfigMapping transportConfig) { 95 this.transportConfig = transportConfig; 96 } 97 102 public String toXML(int indent) { 103 StringBuffer sb = new StringBuffer (); 104 sb.append(indent(indent)); 105 sb.append("<ior-security-config>\n"); 106 107 indent += 2; 108 109 sb.append(transportConfig.toXML(indent)); 111 sb.append(asContext.toXML(indent)); 113 sb.append(sasContext.toXML(indent)); 115 indent -= 2; 116 sb.append(indent(indent)); 117 sb.append("</ior-security-config>\n"); 118 119 return sb.toString(); 120 } 121 } 122 | Popular Tags |