org.apache.cxf.attachment
Class AttachmentUtil
java.lang.Object
org.apache.cxf.attachment.AttachmentUtil
public final class AttachmentUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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