asit.moa.client.deliver.mail
Class MailDeliveryClient

java.lang.Object
  extended byasit.moa.client.AbstractClient
      extended byasit.moa.client.deliver.mail.MailDeliveryClient
All Implemented Interfaces:
Client, DeliveryClient

public class MailDeliveryClient
extends AbstractClient
implements DeliveryClient

Author:
atauber

Field Summary
protected  List bcc_
           
protected  ArrayList binaryDocuments_
           
protected  int defaultPort_
           
protected  String htmlBody_
           
protected  String htmlBodyCharset_
           
protected  String mailSenderAddress_
           
protected  String mailSenderName_
           
protected  String mailSubject_
           
protected  String mailText_
           
protected  Adressat personData_
           
protected  Properties properties_
           
 
Fields inherited from class asit.moa.client.AbstractClient
clientAuthStore_, clientAuthStorePassword_, clientAuthStoreType_, defaultAddress_, doc_, factory_, headers_, keyIdentifier_, qname_service_, sslTrustStore_, sslTrustStorePassword_, sslTrustStoreType_
 
Constructor Summary
MailDeliveryClient()
           
 
Method Summary
 void addBCCRecipient(String recipient)
           
 void addPayLoadBinaryDocument(BinaryDocument document)
           
 void addPayLoadBinaryDocument(InputStream is, String fileName, String mimeType)
           
 void deliver()
           
 String getMailSenderAddress()
           
 Element getRequest()
           
 Element sendRequest(String address)
           
 void setDefaultAddress(String address)
           
 void setDefaultPort(int port)
           
 void setHTMLBody(String content)
           
 void setHTMLBody(String content, String charset)
           
 void setMailSender(String mailSender_)
           
 void setMailSenderAddress(String mailSenderAddress_)
           
 void setMailSubject(String mailSubject_)
           
 void setMailText(String mailText_)
           
 void setPersonData(Adressat personData_)
           
 void setReceiver(Adressat data)
           
 
Methods inherited from class asit.moa.client.AbstractClient
addCustomHeader, createNewDocument, getSOAPBody, sendRequest, sendRequest, sendRequest, setClientAuthStore, setHostNameVerifierEnabled, setSSLSocketFactory, setSSLTrustStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface asit.moa.client.Client
sendRequest, setClientAuthStore, setHostNameVerifierEnabled, setSSLSocketFactory, setSSLTrustStore
 

Field Detail

mailSubject_

protected String mailSubject_

mailSenderName_

protected String mailSenderName_

mailSenderAddress_

protected String mailSenderAddress_

mailText_

protected String mailText_

properties_

protected Properties properties_

personData_

protected Adressat personData_

binaryDocuments_

protected ArrayList binaryDocuments_

defaultPort_

protected int defaultPort_

htmlBody_

protected String htmlBody_

htmlBodyCharset_

protected String htmlBodyCharset_

bcc_

protected List bcc_
Constructor Detail

MailDeliveryClient

public MailDeliveryClient()
                   throws ClientException
Throws:
ClientException
Method Detail

addBCCRecipient

public void addBCCRecipient(String recipient)

setHTMLBody

public void setHTMLBody(String content)

setHTMLBody

public void setHTMLBody(String content,
                        String charset)

setDefaultPort

public void setDefaultPort(int port)

deliver

public void deliver()
             throws DeliveryException
Specified by:
deliver in interface DeliveryClient
Throws:
DeliveryException

setReceiver

public void setReceiver(Adressat data)
Specified by:
setReceiver in interface DeliveryClient

addPayLoadBinaryDocument

public void addPayLoadBinaryDocument(InputStream is,
                                     String fileName,
                                     String mimeType)
Specified by:
addPayLoadBinaryDocument in interface DeliveryClient

addPayLoadBinaryDocument

public void addPayLoadBinaryDocument(BinaryDocument document)

getRequest

public Element getRequest()
                   throws ClientException
Specified by:
getRequest in interface Client
Throws:
ClientException

sendRequest

public Element sendRequest(String address)
                    throws ClientException
Specified by:
sendRequest in interface Client
Overrides:
sendRequest in class AbstractClient
Throws:
ClientException

setDefaultAddress

public void setDefaultAddress(String address)
Specified by:
setDefaultAddress in interface Client
Overrides:
setDefaultAddress in class AbstractClient
Parameters:
address -

setMailSubject

public void setMailSubject(String mailSubject_)
Parameters:
mailSubject_ - The mailSubject_ to set.

setMailText

public void setMailText(String mailText_)
Parameters:
mailText_ - The mailText_ to set.

setPersonData

public void setPersonData(Adressat personData_)
Parameters:
personData_ - The personData_ to set.

setMailSender

public void setMailSender(String mailSender_)
Parameters:
mailSender_ - The mailSender_ to set.

getMailSenderAddress

public String getMailSenderAddress()

setMailSenderAddress

public void setMailSenderAddress(String mailSenderAddress_)


Copyright 2007 Institut fuer Angewandte Informationsverarbeitung und Kommunikationstechnologie. All Rights Reserved.