public class

MultipartBuilder

extends Object
java.lang.Object
   ↳ com.atlassian.confluence.mail.template.MultipartBuilder

Class Overview

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

Summary

Fields
public static final MultipartBuilder INSTANCE
Public Constructors
MultipartBuilder()
Public Methods
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
MimeMultipart makeMultipart(File file)
Creates a multipart from the provided file
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final MultipartBuilder INSTANCE

Public Constructors

public MultipartBuilder ()

Public Methods

public Multipart buildMartipart (String location)

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
IOException

public List getResourcesFromPath (String location)

public MimeMultipart makeMultipart (ByteArrayInputStream bytezIn)

Creates a multipart from the provided byte input stream

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

public MimeMultipart makeMultipart (File file)

Creates a multipart from the provided file

Parameters
file the file to include
Returns
  • the multipart
Throws
MessagingException
IOException
MessagingException