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.MessagingException
IOException
public javax.mail.internet.MimeMultipart makeMultipart(ByteArrayInputStream bytezIn) throws javax.mail.MessagingException, IOException
bytezIn
- the byte stream to includejavax.mail.MessagingException
IOException
public javax.mail.Multipart buildMartipart(String location) throws IOException, javax.mail.MessagingException
location
- - the location of the log filesIOException
javax.mail.MessagingException
public List<org.springframework.core.io.Resource> getResourcesFromPath(String location)
public javax.mail.Multipart makeMultipart(Collection<DataSource> dataSources)
Copyright © 2003–2020 Atlassian. All rights reserved.