org.talika.tarsis.factory
Class SmtpMailSession

java.lang.Object
  extended by org.talika.tarsis.service.AbstractService
      extended by org.talika.tarsis.factory.FactoryService
          extended by org.talika.tarsis.factory.SmtpMailSession
All Implemented Interfaces:
Factory, Service

public final class SmtpMailSession
extends FactoryService

SMTP mail Session factory implementation of Factory interface.

Creates a Session object from given parameters.

Parameters given to create Session are:

Version:
$Revision: 119 $
Author:
Jose M. Palomar
See Also:
Session

Constructor Summary
SmtpMailSession()
          Creates a new SmtpMailSession object.
 
Method Summary
 java.lang.Object getInstance()
          Returns a new Session instance created by this factory.
 javax.mail.Session getMailSession()
          Returns a new Session instance created by this factory.
 java.lang.String getName()
          Returns name of service.
 void setSmtpHost(java.lang.String smtpHost)
          Sets smtpHost parameter.
 
Methods inherited from class org.talika.tarsis.service.AbstractService
destroy, getContext, getLogger, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmtpMailSession

public SmtpMailSession()
Creates a new SmtpMailSession object.

Method Detail

setSmtpHost

public void setSmtpHost(java.lang.String smtpHost)
Sets smtpHost parameter.

Parameters:
smtpHost - String SMTP server.

getName

public java.lang.String getName()
Returns name of service.

Specified by:
getName in interface Service
Specified by:
getName in class AbstractService
Returns:
String name of service.
See Also:
Service.getName()

getInstance

public java.lang.Object getInstance()
Returns a new Session instance created by this factory.

Specified by:
getInstance in interface Factory
Specified by:
getInstance in class FactoryService
Returns:
Object a new Session instance created by this factory.
See Also:
Factory.getInstance()

getMailSession

public javax.mail.Session getMailSession()
Returns a new Session instance created by this factory.

Returns:
Session a new Session instance created by this factory.


Copyright © 2002-2012 Talika Open Source Group. All Rights Reserved.