org.ow2.jonas.antmodular.jonasbase.mail
Class Mail

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
              extended by org.ow2.jonas.antmodular.jonasbase.mail.Mail
All Implemented Interfaces:
Cloneable

public class Mail
extends AbstractJOnASBaseAntTask

Allow to create mail factory.

Author:
Florent Benoit

Field Summary
 
Fields inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
CONF_DIR, destDir, jonasRoot, skipOptionalDeployablesCopy, tasks
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
Mail()
           
 
Method Summary
 void execute()
          Execute this task.
 void setHost(String host)
          Sets the host of mail server.
 void setMailTo(String mailTo)
          Sets the recipient (MimePartDataSource).
 void setName(String name)
          Sets the name.
 void setSubject(String subject)
          Sets the subject (MimePartDataSource).
 void setType(String type)
          Sets the type of factory.
 
Methods inherited from class org.ow2.jonas.antmodular.jonasbase.bootstrap.AbstractJOnASBaseAntTask
addTask, addTasks, copyTemplateDeployables, createServiceNameReplace, executeAllTask, getJOnASBase, getJOnASRoot, getTasks, setDestDir, setSkipOptionalDeployablesCopy
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mail

public Mail()
Method Detail

setMailTo

public void setMailTo(String mailTo)
Sets the recipient (MimePartDataSource).

Parameters:
mailTo - recipient.

setName

public void setName(String name)
Sets the name.

Parameters:
name - name of the factory

setSubject

public void setSubject(String subject)
Sets the subject (MimePartDataSource).

Parameters:
subject - of the mail

setType

public void setType(String type)
Sets the type of factory.

Parameters:
type - of factory

setHost

public void setHost(String host)
Sets the host of mail server.

Parameters:
host - host of mail server

execute

public void execute()
Execute this task.

Overrides:
execute in class AbstractJOnASBaseAntTask


Copyright © 2012 OW2 Consortium. All Rights Reserved.