public class MultipartBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static MultipartBuilder |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
javax.mail.Multipart |
buildMartipart(String location)
Builds a Multipart by zipping the two most recent log files in the specified location.
|
List<org.springframework.core.io.Resource> |
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
|
public static final MultipartBuilder INSTANCE
public javax.mail.internet.MimeMultipart makeMultipart(File file) throws javax.mail.MessagingException, IOException
file - the file to includejavax.mail.MessagingExceptionIOExceptionpublic javax.mail.internet.MimeMultipart makeMultipart(ByteArrayInputStream bytezIn) throws javax.mail.MessagingException, IOException
bytezIn - the byte stream to includejavax.mail.MessagingExceptionIOExceptionpublic javax.mail.Multipart buildMartipart(String location) throws IOException, javax.mail.MessagingException
location - - the location of the log filesIOExceptionjavax.mail.MessagingExceptionpublic List<org.springframework.core.io.Resource> getResourcesFromPath(String location)
public javax.mail.Multipart makeMultipart(Collection<DataSource> dataSources)
Copyright © 2003–2021 Atlassian. All rights reserved.