public class AttachmentPartImpl extends javax.xml.soap.AttachmentPart
| Constructor and Description |
|---|
AttachmentPartImpl() |
AttachmentPartImpl(org.jvnet.mimepull.MIMEPart part) |
getContentId, getContentLocation, getContentType, setContentId, setContentLocation, setContentTypeprotected static final Logger log
public AttachmentPartImpl()
public AttachmentPartImpl(org.jvnet.mimepull.MIMEPart part)
public int getSize()
throws javax.xml.soap.SOAPException
getSize in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic void clearContent()
clearContent in class javax.xml.soap.AttachmentPartpublic Object getContent() throws javax.xml.soap.SOAPException
getContent in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic void setContent(Object object, String contentType) throws IllegalArgumentException
setContent in class javax.xml.soap.AttachmentPartIllegalArgumentExceptionpublic javax.activation.DataHandler getDataHandler()
throws javax.xml.soap.SOAPException
getDataHandler in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic void setDataHandler(javax.activation.DataHandler dataHandler)
throws IllegalArgumentException
setDataHandler in class javax.xml.soap.AttachmentPartIllegalArgumentExceptionpublic void removeAllMimeHeaders()
removeAllMimeHeaders in class javax.xml.soap.AttachmentPartpublic void removeMimeHeader(String header)
removeMimeHeader in class javax.xml.soap.AttachmentPartpublic String[] getMimeHeader(String name)
getMimeHeader in class javax.xml.soap.AttachmentPartpublic void setMimeHeader(String name, String value)
setMimeHeader in class javax.xml.soap.AttachmentPartpublic void addMimeHeader(String name, String value)
addMimeHeader in class javax.xml.soap.AttachmentPartpublic Iterator getAllMimeHeaders()
getAllMimeHeaders in class javax.xml.soap.AttachmentPartpublic Iterator getMatchingMimeHeaders(String[] names)
getMatchingMimeHeaders in class javax.xml.soap.AttachmentPartpublic Iterator getNonMatchingMimeHeaders(String[] names)
getNonMatchingMimeHeaders in class javax.xml.soap.AttachmentPartpublic static void copyMimeHeaders(javax.xml.soap.MimeHeaders headers, MimeBodyPart mbp) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPExceptionpublic static void copyMimeHeaders(MimeBodyPart mbp, AttachmentPartImpl ap) throws javax.xml.soap.SOAPException
javax.xml.soap.SOAPExceptionpublic void setBase64Content(InputStream content, String contentType) throws javax.xml.soap.SOAPException
setBase64Content in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic InputStream getBase64Content() throws javax.xml.soap.SOAPException
getBase64Content in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic void setRawContent(InputStream content, String contentType) throws javax.xml.soap.SOAPException
setRawContent in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic void setRawContentBytes(byte[] content,
int off,
int len,
String contentType)
throws javax.xml.soap.SOAPException
setRawContentBytes in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic InputStream getRawContent() throws javax.xml.soap.SOAPException
getRawContent in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic byte[] getRawContentBytes()
throws javax.xml.soap.SOAPException
getRawContentBytes in class javax.xml.soap.AttachmentPartjavax.xml.soap.SOAPExceptionpublic javax.xml.soap.MimeHeaders getMimeHeaders()
Copyright © 2014 Oracle. All rights reserved.