FileDocCategorySizeDatePackage
MailResource.javaAPI DocGlassfish v2 API4949Fri May 04 22:35:10 BST 2007com.sun.enterprise.repository

MailResource

public class MailResource extends J2EEResourceBase implements Serializable, com.sun.enterprise.deployment.interfaces.MailResourceIntf
Resource info for MailResource. IASRI #4650786
author
James Kong

Fields Summary
private String
resType_
private String
factoryClass_
private String
storeProtocol_
private String
storeProtocolClass_
private String
transportProtocol_
private String
transportProtocolClass_
private String
mailHost_
private String
username_
private String
mailFrom_
private boolean
debug_
Constructors Summary
public MailResource(String name)

        super(name);
    
Methods Summary
protected J2EEResourcedoClone(java.lang.String name)

        MailResource clone = new MailResource(name);
        clone.setResType(getResType());
        clone.setFactoryClass(getFactoryClass());
        return clone;
    
public java.lang.StringgetFactoryClass()

        return factoryClass_;
    
public java.lang.StringgetMailFrom()

        return mailFrom_;
    
public java.lang.StringgetMailHost()

        return mailHost_;
    
public java.lang.StringgetResType()

        return resType_;
    
public java.lang.StringgetStoreProtocol()

        return storeProtocol_;
    
public java.lang.StringgetStoreProtocolClass()

        return storeProtocolClass_;
    
public java.lang.StringgetTransportProtocol()

        return transportProtocol_;
    
public java.lang.StringgetTransportProtocolClass()

        return transportProtocolClass_;
    
public intgetType()

        return J2EEResource.MAIL_RESOURCE;
    
public java.lang.StringgetUsername()

        return username_;
    
public booleanisDebug()

        return debug_;
    
public voidsetDebug(boolean debug)

        debug_ = debug;
    
public voidsetFactoryClass(java.lang.String factoryClass)

        factoryClass_ = factoryClass;
    
public voidsetMailFrom(java.lang.String mailFrom)

        mailFrom_ = mailFrom;
    
public voidsetMailHost(java.lang.String mailHost)

        mailHost_ = mailHost;
    
public voidsetResType(java.lang.String resType)

        resType_ = resType;
    
public voidsetStoreProtocol(java.lang.String storeProtocol)

        storeProtocol_ = storeProtocol;
    
public voidsetStoreProtocolClass(java.lang.String storeProtocolClass)

        storeProtocolClass_ = storeProtocolClass;
    
public voidsetTransportProtocol(java.lang.String transportProtocol)

        transportProtocol_ = transportProtocol;
    
public voidsetTransportProtocolClass(java.lang.String transportProtocolClass)

        transportProtocolClass_ = transportProtocolClass;
    
public voidsetUsername(java.lang.String username)

        username_ = username;
    
public java.lang.StringtoString()

        return "< Mail Resource : " + getName() + " , " + getResType() + "... >";