public class AttachmentPartImpl extends 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 SOAPException
getSize
in class AttachmentPart
SOAPException
public void clearContent()
clearContent
in class AttachmentPart
public Object getContent() throws SOAPException
getContent
in class AttachmentPart
SOAPException
public void setContent(Object object, String contentType) throws IllegalArgumentException
setContent
in class AttachmentPart
IllegalArgumentException
public DataHandler getDataHandler() throws SOAPException
getDataHandler
in class AttachmentPart
SOAPException
public void setDataHandler(DataHandler dataHandler) throws IllegalArgumentException
setDataHandler
in class AttachmentPart
IllegalArgumentException
public void removeAllMimeHeaders()
removeAllMimeHeaders
in class AttachmentPart
public void removeMimeHeader(String header)
removeMimeHeader
in class AttachmentPart
public String[] getMimeHeader(String name)
getMimeHeader
in class AttachmentPart
public void setMimeHeader(String name, String value)
setMimeHeader
in class AttachmentPart
public void addMimeHeader(String name, String value)
addMimeHeader
in class AttachmentPart
public Iterator getAllMimeHeaders()
getAllMimeHeaders
in class AttachmentPart
public Iterator getMatchingMimeHeaders(String[] names)
getMatchingMimeHeaders
in class AttachmentPart
public Iterator getNonMatchingMimeHeaders(String[] names)
getNonMatchingMimeHeaders
in class AttachmentPart
public static void copyMimeHeaders(MimeHeaders headers, MimeBodyPart mbp) throws SOAPException
SOAPException
public static void copyMimeHeaders(MimeBodyPart mbp, AttachmentPartImpl ap) throws SOAPException
SOAPException
public void setBase64Content(InputStream content, String contentType) throws SOAPException
setBase64Content
in class AttachmentPart
SOAPException
public InputStream getBase64Content() throws SOAPException
getBase64Content
in class AttachmentPart
SOAPException
public void setRawContent(InputStream content, String contentType) throws SOAPException
setRawContent
in class AttachmentPart
SOAPException
public void setRawContentBytes(byte[] content, int off, int len, String contentType) throws SOAPException
setRawContentBytes
in class AttachmentPart
SOAPException
public InputStream getRawContent() throws SOAPException
getRawContent
in class AttachmentPart
SOAPException
public byte[] getRawContentBytes() throws SOAPException
getRawContentBytes
in class AttachmentPart
SOAPException
public MimeHeaders getMimeHeaders()
Copyright © 2018 Oracle. All rights reserved.