1 27 package org.objectweb.jonas_ejb.deployment.xml; 28 29 import org.objectweb.jonas_lib.deployment.xml.AbsElement; 30 35 36 public class AsContextMapping extends AbsElement { 37 38 41 private String authMethod = null; 42 43 46 private String realm = null; 47 48 51 private String required = null; 52 53 54 57 public String getAuthMethod() { 58 return authMethod; 59 } 60 63 public void setAuthMethod(String authMethod) { 64 this.authMethod = authMethod; 65 } 66 69 public String getRealm() { 70 return realm; 71 } 72 75 public void setRealm(String realm) { 76 this.realm = realm; 77 } 78 81 public String getRequired() { 82 return required; 83 } 84 87 public void setRequired(String required) { 88 this.required = required; 89 } 90 93 public AsContextMapping() { 94 super(); 95 } 96 97 98 99 104 public String toXML(int indent) { 105 StringBuffer sb = new StringBuffer (); 106 sb.append(indent(indent)); 107 sb.append("<as-context>\n"); 108 109 indent += 2; 110 111 sb.append(xmlElement(authMethod, "auth-method", indent)); 113 sb.append(xmlElement(realm, "realm", indent)); 115 sb.append(xmlElement(required, "required", indent)); 117 indent -= 2; 118 sb.append(indent(indent)); 119 sb.append("</as-context>\n"); 120 121 return sb.toString(); 122 } 123 } 124 | Popular Tags |