public class AttachmentUtils extends Object
Modifier and Type | Field and Description |
---|---|
static javax.mail.Session |
JAVAMAIL_SESSION |
static long |
MAX_SIZE_IN_MEMORY_ATTACHMENT |
static String |
ROOTPART_SOAPUI_ORG |
static QName |
XOP_HREF_QNAME |
Constructor and Description |
---|
AttachmentUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addMimeParts(AttachmentContainer container,
List<Attachment> attachments,
javax.mail.internet.MimeMultipart mp,
StringToStringMap contentIds)
Adds defined attachments as mimeparts
|
static void |
addMultipartAttachment(javax.mail.internet.MimeMultipart mp,
StringToStringMap contentIds,
List<Attachment> attachments)
Adds a mulitpart MimeBodyPart from an array of attachments
|
static void |
addSingleAttachment(javax.mail.internet.MimeMultipart mp,
StringToStringMap contentIds,
Attachment att)
Adds a simple MimeBodyPart from an attachment
|
static String |
buildMTOMContentType(String header,
String action,
SoapVersion soapVersion) |
static String |
buildRootPartContentType(String action,
SoapVersion soapVersion) |
static List<HttpAttachmentPart> |
extractAttachmentParts(WsdlOperation operation,
String messageContent,
boolean addAnonymous,
boolean isResponse,
boolean forceMtom) |
static Attachment.AttachmentEncoding |
getAttachmentEncoding(WsdlOperation operation,
HttpAttachmentPart httpAttachmentPart,
boolean isResponse) |
static Attachment.AttachmentEncoding |
getAttachmentEncoding(WsdlOperation operation,
String partName,
boolean isResponse) |
static String |
getXmlMimeContentType(org.apache.xmlbeans.XmlCursor cursor) |
static void |
initPartContentId(StringToStringMap contentIds,
javax.mail.internet.MimeBodyPart part,
Attachment attachment,
boolean isMultipart) |
static boolean |
isSwaRefType(org.apache.xmlbeans.SchemaType schemaType) |
static boolean |
isXopInclude(org.apache.xmlbeans.SchemaType schemaType) |
static boolean |
prepareMessagePart(WsdlAttachmentContainer container,
javax.mail.internet.MimeMultipart mp,
MessageXmlPart messagePart,
StringToStringMap contentIds) |
public static final QName XOP_HREF_QNAME
public static final String ROOTPART_SOAPUI_ORG
public static final long MAX_SIZE_IN_MEMORY_ATTACHMENT
public static final javax.mail.Session JAVAMAIL_SESSION
public static boolean prepareMessagePart(WsdlAttachmentContainer container, javax.mail.internet.MimeMultipart mp, MessageXmlPart messagePart, StringToStringMap contentIds) throws Exception, javax.mail.MessagingException
Exception
javax.mail.MessagingException
public static String buildRootPartContentType(String action, SoapVersion soapVersion)
public static String buildMTOMContentType(String header, String action, SoapVersion soapVersion)
public static boolean isSwaRefType(org.apache.xmlbeans.SchemaType schemaType)
public static String getXmlMimeContentType(org.apache.xmlbeans.XmlCursor cursor)
public static Attachment.AttachmentEncoding getAttachmentEncoding(WsdlOperation operation, HttpAttachmentPart httpAttachmentPart, boolean isResponse)
public static Attachment.AttachmentEncoding getAttachmentEncoding(WsdlOperation operation, String partName, boolean isResponse)
public static boolean isXopInclude(org.apache.xmlbeans.SchemaType schemaType)
public static List<HttpAttachmentPart> extractAttachmentParts(WsdlOperation operation, String messageContent, boolean addAnonymous, boolean isResponse, boolean forceMtom)
public static void addMimeParts(AttachmentContainer container, List<Attachment> attachments, javax.mail.internet.MimeMultipart mp, StringToStringMap contentIds) throws javax.mail.MessagingException
javax.mail.MessagingException
public static void addMultipartAttachment(javax.mail.internet.MimeMultipart mp, StringToStringMap contentIds, List<Attachment> attachments) throws javax.mail.MessagingException
javax.mail.MessagingException
public static void initPartContentId(StringToStringMap contentIds, javax.mail.internet.MimeBodyPart part, Attachment attachment, boolean isMultipart) throws javax.mail.MessagingException
javax.mail.MessagingException
public static void addSingleAttachment(javax.mail.internet.MimeMultipart mp, StringToStringMap contentIds, Attachment att) throws javax.mail.MessagingException
javax.mail.MessagingException
Copyright © 2019. All Rights Reserved.