Package com.atlassian.jira.mail
Class MailImageInlinerImpl
java.lang.Object
com.atlassian.jira.mail.MailImageInlinerImpl
- All Implemented Interfaces:
MailImageInliner
@ParametersAreNonnullByDefault
public class MailImageInlinerImpl
extends Object
implements MailImageInliner
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.mail.MailImageInliner
MailImageInliner.InlinedEmailBody
-
Constructor Summary
ConstructorsConstructorDescriptionMailImageInlinerImpl
(AvatarManager avatarManager, AttachmentManager attachmentManager, ThumbnailManager thumbnailManager, MailAttachmentsManagerFactory mailAttachmentsManagerFactory) -
Method Summary
Modifier and TypeMethodDescriptioninlineImages
(String html) Tries to inline all the images specified by an IMG tag.inlineImages
(String html, Issue issue) Tries to inline all the images specified by an IMG tag.
-
Constructor Details
-
MailImageInlinerImpl
public MailImageInlinerImpl(AvatarManager avatarManager, AttachmentManager attachmentManager, ThumbnailManager thumbnailManager, MailAttachmentsManagerFactory mailAttachmentsManagerFactory)
-
-
Method Details
-
inlineImages
Description copied from interface:MailImageInliner
Tries to inline all the images specified by an IMG tag. Replaces the image url with the cid link or unchanged path if specified path cannot be added as attachment. Will then build the related body parts for the attachments. NB: This method will be able to inline system images contained within provided HTML, however will not inline user attachments. SeeMailImageInliner.inlineImages(String, Issue)
in order to inline attachments related to an issue.- Specified by:
inlineImages
in interfaceMailImageInliner
- Parameters:
html
- HTML to change.- Returns:
- The
MailImageInliner.InlinedEmailBody
to represent the new email body, fully inlined
-
inlineImages
Description copied from interface:MailImageInliner
Tries to inline all the images specified by an IMG tag. Replaces the image url with the cid link or unchanged path if specified path cannot be added as attachment. Will then build the related body parts for the attachments. NB: This method will inline system images as well as attachments related to issueIssue.getAttachments()
that are contained within the provided html.- Specified by:
inlineImages
in interfaceMailImageInliner
- Parameters:
html
- HTML to change.issue
- Issue that is related to HTML that contains required attachments- Returns:
- The
MailImageInliner.InlinedEmailBody
to represent the new email body, fully inlined
-