org.apache.cxf.attachment
Class AttachmentUtil

java.lang.Object
  extended by org.apache.cxf.attachment.AttachmentUtil

public final class AttachmentUtil
extends java.lang.Object


Method Summary
static Attachment createAttachment(java.io.InputStream stream, javax.mail.internet.InternetHeaders headers)
           
static java.lang.String createContentID(java.lang.String ns)
           
static java.lang.String getAttchmentPartHeader(Attachment att)
           
static java.util.Map<java.lang.String,javax.activation.DataHandler> getDHMap(java.util.Collection<Attachment> attachments)
           
static java.lang.String getUniqueBoundaryValue()
           
static boolean isTypeSupported(java.lang.String contentType, java.util.List<java.lang.String> types)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createContentID

public static java.lang.String createContentID(java.lang.String ns)
                                        throws java.io.UnsupportedEncodingException
Parameters:
ns -
Returns:
Throws:
java.io.UnsupportedEncodingException

getUniqueBoundaryValue

public static java.lang.String getUniqueBoundaryValue()

getAttchmentPartHeader

public static java.lang.String getAttchmentPartHeader(Attachment att)

getDHMap

public static java.util.Map<java.lang.String,javax.activation.DataHandler> getDHMap(java.util.Collection<Attachment> attachments)

createAttachment

public static Attachment createAttachment(java.io.InputStream stream,
                                          javax.mail.internet.InternetHeaders headers)
                                   throws java.io.IOException
Throws:
java.io.IOException

isTypeSupported

public static boolean isTypeSupported(java.lang.String contentType,
                                      java.util.List<java.lang.String> types)


Apache CXF