com.atlassian.confluence.plugins.emailgateway.api
Class SerializableAttachment

java.lang.Object
  extended by com.atlassian.confluence.plugins.emailgateway.api.SerializableAttachment
All Implemented Interfaces:
java.io.Serializable

@PublicApi
public class SerializableAttachment
extends java.lang.Object
implements java.io.Serializable

Wrapper for MailUtils.Attachment that won't kill Bandana.

Since:
5.3
See Also:
Serialized Form

Constructor Summary
SerializableAttachment()
           
SerializableAttachment(byte[] contents, java.lang.String contentType, java.lang.String filename)
           
SerializableAttachment(com.atlassian.mail.MailUtils.Attachment attachment)
           
 
Method Summary
 byte[] getContents()
           
 java.lang.String getContentType()
           
 java.lang.String getFilename()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerializableAttachment

public SerializableAttachment()

SerializableAttachment

public SerializableAttachment(com.atlassian.mail.MailUtils.Attachment attachment)

SerializableAttachment

public SerializableAttachment(byte[] contents,
                              java.lang.String contentType,
                              java.lang.String filename)
Method Detail

getFilename

public java.lang.String getFilename()

getContentType

public java.lang.String getContentType()

getContents

public byte[] getContents()


Copyright © 2003-2014 Atlassian. All Rights Reserved.