- java.lang.Object
-
- javax.xml.soap.AttachmentPart
-
- com.sun.xml.messaging.saaj.soap.AttachmentPartImpl
-
public class AttachmentPartImpl extends AttachmentPart
Implementation of attachments.- Author:
- Anil Vijendran (akv@eng.sun.com)
-
-
Constructor Summary
Constructors Constructor Description AttachmentPartImpl()AttachmentPartImpl(org.jvnet.mimepull.MIMEPart part)
-
Method Summary
-
Methods inherited from class javax.xml.soap.AttachmentPart
getContentId, getContentLocation, getContentType, setContentId, setContentLocation, setContentType
-
-
-
-
Field Detail
-
log
protected static final Logger log
-
-
Method Detail
-
getSize
public int getSize() throws SOAPException- Specified by:
getSizein classAttachmentPart- Throws:
SOAPException
-
clearContent
public void clearContent()
- Specified by:
clearContentin classAttachmentPart
-
getContent
public Object getContent() throws SOAPException
- Specified by:
getContentin classAttachmentPart- Throws:
SOAPException
-
setContent
public void setContent(Object object, String contentType) throws IllegalArgumentException
- Specified by:
setContentin classAttachmentPart- Throws:
IllegalArgumentException
-
getDataHandler
public DataHandler getDataHandler() throws SOAPException
- Specified by:
getDataHandlerin classAttachmentPart- Throws:
SOAPException
-
setDataHandler
public void setDataHandler(DataHandler dataHandler) throws IllegalArgumentException
- Specified by:
setDataHandlerin classAttachmentPart- Throws:
IllegalArgumentException
-
removeAllMimeHeaders
public void removeAllMimeHeaders()
- Specified by:
removeAllMimeHeadersin classAttachmentPart
-
removeMimeHeader
public void removeMimeHeader(String header)
- Specified by:
removeMimeHeaderin classAttachmentPart
-
getMimeHeader
public String[] getMimeHeader(String name)
- Specified by:
getMimeHeaderin classAttachmentPart
-
setMimeHeader
public void setMimeHeader(String name, String value)
- Specified by:
setMimeHeaderin classAttachmentPart
-
addMimeHeader
public void addMimeHeader(String name, String value)
- Specified by:
addMimeHeaderin classAttachmentPart
-
getAllMimeHeaders
public Iterator<MimeHeader> getAllMimeHeaders()
- Specified by:
getAllMimeHeadersin classAttachmentPart
-
getMatchingMimeHeaders
public Iterator<MimeHeader> getMatchingMimeHeaders(String[] names)
- Specified by:
getMatchingMimeHeadersin classAttachmentPart
-
getNonMatchingMimeHeaders
public Iterator<MimeHeader> getNonMatchingMimeHeaders(String[] names)
- Specified by:
getNonMatchingMimeHeadersin classAttachmentPart
-
copyMimeHeaders
public static void copyMimeHeaders(MimeHeaders headers, MimeBodyPart mbp) throws SOAPException
- Throws:
SOAPException
-
copyMimeHeaders
public static void copyMimeHeaders(MimeBodyPart mbp, AttachmentPartImpl ap) throws SOAPException
- Throws:
SOAPException
-
setBase64Content
public void setBase64Content(InputStream content, String contentType) throws SOAPException
- Specified by:
setBase64Contentin classAttachmentPart- Throws:
SOAPException
-
getBase64Content
public InputStream getBase64Content() throws SOAPException
- Specified by:
getBase64Contentin classAttachmentPart- Throws:
SOAPException
-
setRawContent
public void setRawContent(InputStream content, String contentType) throws SOAPException
- Specified by:
setRawContentin classAttachmentPart- Throws:
SOAPException
-
setRawContentBytes
public void setRawContentBytes(byte[] content, int off, int len, String contentType) throws SOAPException- Specified by:
setRawContentBytesin classAttachmentPart- Throws:
SOAPException
-
getRawContent
public InputStream getRawContent() throws SOAPException
- Specified by:
getRawContentin classAttachmentPart- Throws:
SOAPException
-
getRawContentBytes
public byte[] getRawContentBytes() throws SOAPException- Specified by:
getRawContentBytesin classAttachmentPart- Throws:
SOAPException
-
getMimeHeaders
public MimeHeaders getMimeHeaders()
-
initializeJavaActivationHandlers
public static void initializeJavaActivationHandlers()
-
-