1 27 package org.objectweb.jonas_rar.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 import org.objectweb.jonas_lib.deployment.xml.JLinkedList; 31 36 37 public class OutboundResourceadapter extends AbsElement { 38 39 42 private JLinkedList connectionDefinitionList = null; 43 44 47 private String transactionSupport = null; 48 49 52 private JLinkedList authenticationMechanismList = null; 53 54 57 private String reauthenticationSupport = null; 58 59 60 63 public OutboundResourceadapter() { 64 super(); 65 connectionDefinitionList = new JLinkedList("connection-definition"); 66 authenticationMechanismList = new JLinkedList("authentication-mechanism"); 67 } 68 69 73 public JLinkedList getConnectionDefinitionList() { 74 return connectionDefinitionList; 75 } 76 77 81 public void setConnectionDefinitionList(JLinkedList connectionDefinitionList) { 82 this.connectionDefinitionList = connectionDefinitionList; 83 } 84 85 89 public void addConnectionDefinition(ConnectionDefinition connectionDefinition) { 90 connectionDefinitionList.add(connectionDefinition); 91 } 92 93 97 public String getTransactionSupport() { 98 return transactionSupport; 99 } 100 101 105 public void setTransactionSupport(String transactionSupport) { 106 this.transactionSupport = transactionSupport; 107 } 108 109 113 public JLinkedList getAuthenticationMechanismList() { 114 return authenticationMechanismList; 115 } 116 117 121 public void setAuthenticationMechanismList(JLinkedList authenticationMechanismList) { 122 this.authenticationMechanismList = authenticationMechanismList; 123 } 124 125 129 public void addAuthenticationMechanism(AuthenticationMechanism authenticationMechanism) { 130 authenticationMechanismList.add(authenticationMechanism); 131 } 132 133 137 public String getReauthenticationSupport() { 138 return reauthenticationSupport; 139 } 140 141 145 public void setReauthenticationSupport(String reauthenticationSupport) { 146 this.reauthenticationSupport = reauthenticationSupport; 147 } 148 149 154 public String toXML(int indent) { 155 StringBuffer sb = new StringBuffer (); 156 sb.append(indent(indent)); 157 sb.append("<outbound-resourceadapter>\n"); 158 159 indent += 2; 160 161 sb.append(connectionDefinitionList.toXML(indent)); 163 sb.append(xmlElement(transactionSupport, "transaction-support", indent)); 165 sb.append(authenticationMechanismList.toXML(indent)); 167 sb.append(xmlElement(reauthenticationSupport, "reauthentication-support", indent)); 169 indent -= 2; 170 sb.append(indent(indent)); 171 sb.append("</outbound-resourceadapter>\n"); 172 173 return sb.toString(); 174 } 175 } 176 | Popular Tags |