1 23 24 package com.sun.enterprise.deployment.node.runtime; 25 26 import com.sun.enterprise.deployment.node.XMLElement; 27 import com.sun.enterprise.deployment.ResourceReferenceDescriptor; 28 import com.sun.enterprise.deployment.node.DeploymentDescriptorNode; 29 import com.sun.enterprise.deployment.xml.RuntimeTagNames; 30 31 import com.sun.enterprise.deployment.MailConfiguration; 32 33 40 public class MailConfigurationNode extends DeploymentDescriptorNode { 41 42 private String name = null; 43 private String mail_from = null; 44 private String mail_host = null; 45 46 52 public void setElementValue(XMLElement element, String value) { 53 if (RuntimeTagNames.NAME.equals(element.getQName())) { 54 name = value; 55 } else if (RuntimeTagNames.MAIL_FROM.equals(element.getQName())) { 56 mail_from = value; 57 } else if (RuntimeTagNames.MAIL_HOST.equals(element.getQName())) { 58 mail_host = value; 59 } 60 } 61 62 65 public void postParsing() { 66 getParentNode().addDescriptor(new MailConfiguration(name, mail_from, mail_host)); 67 } 68 } | Popular Tags |