|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.mail.template.MultipartBuilder
public class MultipartBuilder
Helper class used for building multiparts to be attached to support request emails.
Field Summary | |
---|---|
static MultipartBuilder |
INSTANCE
|
Method Summary | |
---|---|
javax.mail.Multipart |
buildMartipart(String location)
Builds a Multipart by zipping the two most recent log files in the specified location. |
List |
getResourcesFromPath(String location)
|
javax.mail.internet.MimeMultipart |
makeMultipart(ByteArrayInputStream bytezIn)
Creates a multipart from the provided byte input stream |
javax.mail.Multipart |
makeMultipart(Collection<DataSource> dataSources)
|
javax.mail.internet.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 |
---|
public static final MultipartBuilder INSTANCE
Method Detail |
---|
public javax.mail.internet.MimeMultipart makeMultipart(File file) throws javax.mail.MessagingException, IOException
file
- the file to include
javax.mail.MessagingException
IOException
public javax.mail.internet.MimeMultipart makeMultipart(ByteArrayInputStream bytezIn) throws javax.mail.MessagingException, IOException
bytezIn
- the byte stream to include
javax.mail.MessagingException
IOException
public javax.mail.Multipart buildMartipart(String location) throws IOException, javax.mail.MessagingException
location
- - the location of the log files
IOException
javax.mail.MessagingException
public List getResourcesFromPath(String location)
public javax.mail.Multipart makeMultipart(Collection<DataSource> dataSources)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |