com.atlassian.confluence.mail.template
Class MultipartBuilder

java.lang.Object
  extended by com.atlassian.confluence.mail.template.MultipartBuilder

public class MultipartBuilder
extends Object

Helper class used for building multiparts to be attached to support request emails.


Field Summary
static MultipartBuilder INSTANCE
           
 
Constructor Summary
MultipartBuilder()
           
 
Method Summary
 Multipart buildMartipart(String location)
          Builds a Multipart by zipping the two most recent log files in the specified location.
 List getResourcesFromPath(String location)
           
 MimeMultipart makeMultipart(ByteArrayInputStream bytezIn)
          Creates a multipart from the provided byte input stream
 Multipart makeMultipart(Collection<DataSource> dataSources)
           
 MimeMultipart makeMultipart(File file)
          Creates a multipart from the provided file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final MultipartBuilder INSTANCE
Constructor Detail

MultipartBuilder

public MultipartBuilder()
Method Detail

makeMultipart

public MimeMultipart makeMultipart(File file)
                            throws MessagingException,
                                   IOException
Creates a multipart from the provided file

Parameters:
file - the file to include
Returns:
the multipart
Throws:
MessagingException
IOException

makeMultipart

public MimeMultipart makeMultipart(ByteArrayInputStream bytezIn)
                            throws MessagingException,
                                   IOException
Creates a multipart from the provided byte input stream

Parameters:
bytezIn - the byte stream to include
Returns:
the multipart
Throws:
MessagingException
IOException

buildMartipart

public Multipart buildMartipart(String location)
                         throws IOException,
                                MessagingException
Builds a Multipart by zipping the two most recent log files in the specified location.

Parameters:
location - - the location of the log files
Returns:
the multipart
Throws:
IOException
MessagingException

getResourcesFromPath

public List getResourcesFromPath(String location)

makeMultipart

public Multipart makeMultipart(Collection<DataSource> dataSources)


Confluence is developed by Atlassian.