当前页面:
在线文档首页 >
JBoss Seam 1.1.1 API 英文版文档
MailSession (JBoss Seam API Documentation) - JBoss Seam 1.1.1 API 英文版文档
org.jboss.seam.mail
Class MailSession
java.lang.Object
org.jboss.seam.core.AbstractMutable
org.jboss.seam.mail.MailSession
- All Implemented Interfaces:
- Serializable, Mutable
@Name(value="org.jboss.seam.mail.mailSession")
@Install(value=false,
precedence=0)
@Scope(value=APPLICATION)
@Intercept(value=NEVER)
public class MailSession
- extends AbstractMutable
- implements Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MailSession
public MailSession()
getSession
@Unwrap
public javax.mail.Session getSession()
create
@Create
public void create()
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
- Parameters:
password
- The password to use to authenticate to the sending server. If
no authentication is required it should be left empty. Must be
supplied in conjunction with username.
getUsername
public String getUsername()
setUsername
public void setUsername(String username)
- Parameters:
username
- The username to use to authenticate to the server. If not set
then no authentication is used. Must be set in conjunction
with password.
isDebug
public boolean isDebug()
setDebug
public void setDebug(boolean debug)
- Parameters:
debug
- Whether to display debug message logging. Warning, very
verbose.
getHost
public String getHost()
setHost
public void setHost(String host)
- Parameters:
host
- The host to connect to. Used unless overriden by a protocol
specific host
setPort
public void setPort(Integer port)
getPort
public Integer getPort()