1 17 18 19 package org.apache.catalina.deploy; 20 21 import java.io.Serializable ; 22 23 32 33 public class ContextResource extends ResourceBase implements Serializable { 34 35 36 38 39 43 private String auth = null; 44 45 public String getAuth() { 46 return (this.auth); 47 } 48 49 public void setAuth(String auth) { 50 this.auth = auth; 51 } 52 53 57 private String scope = "Shareable"; 58 59 public String getScope() { 60 return (this.scope); 61 } 62 63 public void setScope(String scope) { 64 this.scope = scope; 65 } 66 67 68 70 71 74 public String toString() { 75 76 StringBuffer sb = new StringBuffer ("ContextResource["); 77 sb.append("name="); 78 sb.append(getName()); 79 if (getDescription() != null) { 80 sb.append(", description="); 81 sb.append(getDescription()); 82 } 83 if (getType() != null) { 84 sb.append(", type="); 85 sb.append(getType()); 86 } 87 if (auth != null) { 88 sb.append(", auth="); 89 sb.append(auth); 90 } 91 if (scope != null) { 92 sb.append(", scope="); 93 sb.append(scope); 94 } 95 sb.append("]"); 96 return (sb.toString()); 97 98 } 99 100 } 101 | Popular Tags |