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