com.atlassian.confluence.mail.embed
Class MimeBodyPartReference

java.lang.Object
  extended by com.atlassian.confluence.mail.embed.MimeBodyPartReference

public final class MimeBodyPartReference
extends java.lang.Object

A reference to a designated MIME body part and an RFC 2392 compliant way to locate it within the HTML body part the same email.

Since:
5.4

Constructor Summary
MimeBodyPartReference(javax.activation.DataSource source)
           
 
Method Summary
 java.net.URI getLocator()
          Locates the designated body part within the HTML body part of an email.
 javax.activation.DataSource getSource()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeBodyPartReference

public MimeBodyPartReference(javax.activation.DataSource source)
Method Detail

getLocator

public java.net.URI getLocator()
Locates the designated body part within the HTML body part of an email.

This locator will use the cid: URL scheme as defined in RFC 2392. It's meant to be used within the src attribute of img tags within the HTML body part of the same email.

 <img src=\"" + myMimeBodyPartReference.getLocator().toExternalForm() + "\"/>
 
 

Returns:
locates the designated body part within the HTML

getSource

public javax.activation.DataSource getSource()
Returns:
a DataSource encapsulating the access to the image data


Copyright © 2003-2014 Atlassian. All Rights Reserved.