Package org.apache.cxf.attachment
Class AttachmentUtil
java.lang.Object
org.apache.cxf.attachment.AttachmentUtil
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringcleanContentId(String id) static AttachmentcreateAttachment(InputStream stream, Map<String, List<String>> headers) Deprecated.use createAttachment(InputStream stream, Map<String, List> headers, Message message) static AttachmentcreateAttachment(InputStream stream, Map<String, List<String>> headers, Message message) static Stringstatic AttachmentcreateMtomAttachment(boolean isXop, String mimeType, String elementNS, byte[] data, int offset, int length, int threshold) static AttachmentcreateMtomAttachmentFromDH(boolean isXop, jakarta.activation.DataHandler handler, String elementNS, int threshold) static InputStreamdecode(InputStream in, String encoding) static jakarta.activation.DataSourcegetAttachmentDataSource(String contentId, Collection<Attachment> atts) static jakarta.activation.CommandMapgetDHMap(Collection<Attachment> attachments) static Stringstatic booleanisMtomEnabled(Message message) static booleanisTypeSupported(String contentType, List<String> types) static voidsetStreamedAttachmentProperties(Message message, CachedOutputStream bos) 
- 
Field Details- 
ATTACHMENT_CONTENT_TYPE- See Also:
 
- 
ATTACHMENT_XOP_FOLLOW_URLS_PROPERTY- See Also:
 
- 
BODY_ATTACHMENT_ID- See Also:
 
 
- 
- 
Method Details- 
getCommandMappublic static jakarta.activation.CommandMap getCommandMap()
- 
isMtomEnabled
- 
setStreamedAttachmentPropertiespublic static void setStreamedAttachmentProperties(Message message, CachedOutputStream bos) throws IOException - Throws:
- IOException
 
- 
createContentID- Throws:
- UnsupportedEncodingException
 
- 
getUniqueBoundaryValue
- 
getDHMappublic static Map<String,jakarta.activation.DataHandler> getDHMap(Collection<Attachment> attachments) 
- 
cleanContentId
- 
createAttachmentpublic static Attachment createAttachment(InputStream stream, Map<String, List<String>> headers) throws IOExceptionDeprecated.use createAttachment(InputStream stream, Map<String, List> headers, Message message) - Throws:
- IOException
 
- 
createAttachmentpublic static Attachment createAttachment(InputStream stream, Map<String, List<String>> headers, Message message) throws IOException- Throws:
- IOException
 
- 
decode- Throws:
- IOException
 
- 
isTypeSupported
- 
createMtomAttachmentpublic static Attachment createMtomAttachment(boolean isXop, String mimeType, String elementNS, byte[] data, int offset, int length, int threshold) 
- 
createMtomAttachmentFromDHpublic static Attachment createMtomAttachmentFromDH(boolean isXop, jakarta.activation.DataHandler handler, String elementNS, int threshold) 
- 
getAttachmentDataSourcepublic static jakarta.activation.DataSource getAttachmentDataSource(String contentId, Collection<Attachment> atts) 
 
-