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.

另请参见:
序列化表格

嵌套类摘要
static class MailSessionReference.PasswordAuthenticator
           
 
字段摘要
 
从类 javax.naming.Reference 继承的字段
addrs, classFactory, classFactoryLocation, className
 
构造方法摘要
MailSessionReference()
           
 
方法摘要
 Object getObjectInstance(Object ref, Name arg1, Context arg2, Hashtable arg3)
          Create a javax.mail.Session instance based on the information passed in the Reference
 void setPassword(String password)
           
 void setProperties(Properties properties)
           
 void setUser(String user)
           
 
从类 javax.naming.Reference 继承的方法
add, add, clear, clone, equals, get, get, getAll, getClassName, getFactoryClassLocation, getFactoryClassName, hashCode, remove, size, toString
 
从类 java.lang.Object 继承的方法
finalize, getClass, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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 Reference
arg1 - not used
arg2 - not used
arg3 - 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.