1 23 24 28 29 package com.sun.enterprise.config.serverbeans; 30 31 import org.w3c.dom.*; 32 import org.netbeans.modules.schema2beans.*; 33 import java.beans.*; 34 import java.util.*; 35 import java.io.Serializable ; 36 import com.sun.enterprise.config.ConfigBean; 37 import com.sun.enterprise.config.ConfigException; 38 import com.sun.enterprise.config.StaleWriteConfigException; 39 import com.sun.enterprise.util.i18n.StringManager; 40 41 43 public class ResponsePolicy extends ConfigBean implements Serializable 44 { 45 46 static Vector comparators = new Vector(); 47 private static final org.netbeans.modules.schema2beans.Version runtimeVersion = new org.netbeans.modules.schema2beans.Version(4, 2, 0); 48 49 50 public ResponsePolicy() { 51 this(Common.USE_DEFAULT_VALUES); 52 } 53 54 public ResponsePolicy(int options) 55 { 56 super(comparators, runtimeVersion); 57 initPropertyTables(0); 59 this.initialize(options); 60 } 61 62 void initialize(int options) { 64 65 } 66 67 71 public String getAuthSource() { 72 return getAttributeValue(ServerTags.AUTH_SOURCE); 73 } 74 79 public void setAuthSource(String v, boolean overwrite) throws StaleWriteConfigException { 80 setAttributeValue(ServerTags.AUTH_SOURCE, v, overwrite); 81 } 82 86 public void setAuthSource(String v) { 87 setAttributeValue(ServerTags.AUTH_SOURCE, v); 88 } 89 93 public String getAuthRecipient() { 94 return getAttributeValue(ServerTags.AUTH_RECIPIENT); 95 } 96 101 public void setAuthRecipient(String v, boolean overwrite) throws StaleWriteConfigException { 102 setAttributeValue(ServerTags.AUTH_RECIPIENT, v, overwrite); 103 } 104 108 public void setAuthRecipient(String v) { 109 setAttributeValue(ServerTags.AUTH_RECIPIENT, v); 110 } 111 116 protected String getRelativeXPath() { 117 String ret = null; 118 ret = "response-policy"; 119 return (null != ret ? ret.trim() : null); 120 } 121 122 125 public static String getDefaultAttributeValue(String attr) { 126 if(attr == null) return null; 127 attr = attr.trim(); 128 return null; 129 } 130 public static void addComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 132 comparators.add(c); 133 } 134 135 public static void removeComparator(org.netbeans.modules.schema2beans.BeanComparator c) { 137 comparators.remove(c); 138 } 139 public void validate() throws org.netbeans.modules.schema2beans.ValidateException { 140 } 141 142 public void dump(StringBuffer str, String indent){ 144 String s; 145 Object o; 146 org.netbeans.modules.schema2beans.BaseBean n; 147 } 148 public String dumpBeanNode(){ 149 StringBuffer str = new StringBuffer (); 150 str.append("ResponsePolicy\n"); this.dump(str, "\n "); return str.toString(); 153 }} 154 155 157 | Popular Tags |