com.atlassian.confluence.plugins.emailgateway.attachmentconverter.instances
Class ImageAttachmentConverter

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.attachmentconverter.instances.ImageAttachmentConverter
All Implemented Interfaces:
AttachmentConverter<EmbeddedImage>

public class ImageAttachmentConverter
extends java.lang.Object
implements AttachmentConverter<EmbeddedImage>

Since:
5.3

Constructor Summary
ImageAttachmentConverter()
           
 
Method Summary
 EmbeddedImage convertAttachment(AttachmentFile attachmentFile)
          Creates a Confluence XHTML API object from the supplied parameters, if the Converter instance handles this parameter combination.
 java.lang.Class<EmbeddedImage> getConversionClass()
          The type of object this converter returns.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageAttachmentConverter

public ImageAttachmentConverter()
Method Detail

convertAttachment

public EmbeddedImage convertAttachment(AttachmentFile attachmentFile)
Description copied from interface: AttachmentConverter
Creates a Confluence XHTML API object from the supplied parameters, if the Converter instance handles this parameter combination.

Specified by:
convertAttachment in interface AttachmentConverter<EmbeddedImage>
Parameters:
attachmentFile - representing the file name, type and size
Returns:
a Confluence XHTML API object, or null if the converter doesn't handle this file

getConversionClass

public java.lang.Class<EmbeddedImage> getConversionClass()
Description copied from interface: AttachmentConverter
The type of object this converter returns. Needed so we can look up the correct Marshaller from the registry. Kind of crap - wouldn't be required if the registry could locate values based on isAssignableFrom :/

Specified by:
getConversionClass in interface AttachmentConverter<EmbeddedImage>


Copyright © 2003-2014 Atlassian. All Rights Reserved.