1 29 30 package nextapp.echo2.webrender; 31 32 import java.io.Serializable ; 33 import java.util.HashMap ; 34 import java.util.Map ; 35 import java.util.Set ; 36 37 40 public class ClientConfiguration 41 implements Serializable { 42 43 47 public static final String PROPERTY_SERVER_ERROR_MESSAGE = "serverErrorMessage"; 48 49 53 public static final String PROPERTY_SERVER_ERROR_URI = "serverErrorUri"; 54 55 59 public static final String PROPERTY_SESSION_EXPIRATION_MESSAGE = "sessionExpirationMessage"; 60 61 65 public static final String PROPERTY_SESSION_EXPIRATION_URI = "sessionExpirationUri"; 66 67 70 private Map propertyMap = new HashMap (); 71 72 78 public String getProperty(String name) { 79 return (String ) propertyMap.get(name); 80 } 81 82 87 public String [] getPropertyNames() { 88 Set propertyNames = propertyMap.keySet(); 89 return (String []) propertyNames.toArray(new String [propertyNames.size()]); 90 } 91 92 98 public void setProperty(String name, String value) { 99 propertyMap.put(name, value); 100 } 101 } 102 | Popular Tags |