1 23 package com.sun.enterprise.repository; 24 25 import java.io.Serializable ; 26 import com.sun.enterprise.deployment.interfaces.MailResourceIntf; 27 28 33 public class MailResource extends J2EEResourceBase 34 implements Serializable , MailResourceIntf { 35 36 private String resType_; 37 private String factoryClass_; 38 39 private String storeProtocol_; 40 private String storeProtocolClass_; 41 private String transportProtocol_; 42 private String transportProtocolClass_; 43 private String mailHost_; 44 private String username_; 45 private String mailFrom_; 46 private boolean debug_; 47 48 public MailResource(String name) { 49 super(name); 50 } 51 52 protected J2EEResource doClone(String name) { 53 MailResource clone = new MailResource(name); 54 clone.setResType(getResType()); 55 clone.setFactoryClass(getFactoryClass()); 56 return clone; 57 } 58 59 public int getType() { 60 return J2EEResource.MAIL_RESOURCE; 61 } 62 63 public String getResType() { 64 return resType_; 65 } 66 67 public void setResType(String resType) { 68 resType_ = resType; 69 } 70 71 public String getFactoryClass() { 72 return factoryClass_; 73 } 74 75 public void setFactoryClass(String factoryClass) { 76 factoryClass_ = factoryClass; 77 } 78 79 public String getStoreProtocol() { 80 return storeProtocol_; 81 } 82 83 public void setStoreProtocol(String storeProtocol) { 84 storeProtocol_ = storeProtocol; 85 } 86 87 public String getStoreProtocolClass() { 88 return storeProtocolClass_; 89 } 90 91 public void setStoreProtocolClass(String storeProtocolClass) { 92 storeProtocolClass_ = storeProtocolClass; 93 } 94 95 public String getTransportProtocol() { 96 return transportProtocol_; 97 } 98 99 public void setTransportProtocol(String transportProtocol) { 100 transportProtocol_ = transportProtocol; 101 } 102 103 public String getTransportProtocolClass() { 104 return transportProtocolClass_; 105 } 106 107 public void setTransportProtocolClass(String transportProtocolClass) { 108 transportProtocolClass_ = transportProtocolClass; 109 } 110 111 public String getMailHost() { 112 return mailHost_; 113 } 114 115 public void setMailHost(String mailHost) { 116 mailHost_ = mailHost; 117 } 118 119 public String getUsername() { 120 return username_; 121 } 122 123 public void setUsername(String username) { 124 username_ = username; 125 } 126 127 public String getMailFrom() { 128 return mailFrom_; 129 } 130 131 public void setMailFrom(String mailFrom) { 132 mailFrom_ = mailFrom; 133 } 134 135 public boolean isDebug() { 136 return debug_; 137 } 138 139 public void setDebug(boolean debug) { 140 debug_ = debug; 141 } 142 143 public String toString() { 144 return "< Mail Resource : " + getName() + " , " + getResType() + "... >"; 145 } 146 } 147 | Popular Tags |