org.eclipse.jetty.jndi.factories
类 MailSessionReference
java.lang.Object
javax.naming.Reference
org.eclipse.jetty.jndi.factories.MailSessionReference
- 所有已实现的接口:
- Serializable, Cloneable, ObjectFactory
public class MailSessionReference
- extends Reference
- implements ObjectFactory
MailSessionReference
This is a subclass of javax.mail.Reference and an ObjectFactory for javax.mail.Session objects.
The subclassing of Reference allows all of the setup for a javax.mail.Session
to be captured without necessitating first instantiating a Session object. The
reference is bound into JNDI and it is only when the reference is looked up that
this object factory will create an instance of javax.mail.Session using the
information captured in the Reference.
- 另请参见:
- 序列化表格
| 从类 javax.naming.Reference 继承的方法 |
add, add, clear, clone, equals, get, get, getAll, getClassName, getFactoryClassLocation, getFactoryClassName, hashCode, remove, size, toString |
MailSessionReference
public MailSessionReference()
getObjectInstance
public Object getObjectInstance(Object ref,
Name arg1,
Context arg2,
Hashtable arg3)
throws Exception
- Create a javax.mail.Session instance based on the information passed in the Reference
- 指定者:
- 接口
ObjectFactory 中的 getObjectInstance
- 参数:
ref - the Referencearg1 - not usedarg2 - not usedarg3 - not used
- 返回:
- the object found
- 抛出:
Exception- 另请参见:
ObjectFactory.getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable)
setUser
public void setUser(String user)
setPassword
public void setPassword(String password)
setProperties
public void setProperties(Properties properties)
Copyright © 2013. All Rights Reserved.