Package com.sun.xml.messaging.saaj.soap
Class AttachmentPartImpl
java.lang.Object
jakarta.xml.soap.AttachmentPart
com.sun.xml.messaging.saaj.soap.AttachmentPartImpl
Implementation of attachments.
- Author:
- Anil Vijendran (akv@eng.sun.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMimeHeader(String name, String value) voidstatic voidstatic voidcopyMimeHeaders(MimeHeaders headers, MimeBodyPart mbp) booleanjakarta.activation.DataHandlergetMatchingMimeHeaders(String[] names) String[]getMimeHeader(String name) getNonMatchingMimeHeaders(String[] names) byte[]intgetSize()inthashCode()static voidvoidvoidremoveMimeHeader(String header) voidsetBase64Content(InputStream content, String contentType) voidsetContent(Object object, String contentType) voidsetDataHandler(jakarta.activation.DataHandler dataHandler) voidsetMimeHeader(String name, String value) voidsetRawContent(InputStream content, String contentType) voidsetRawContentBytes(byte[] content, int off, int len, String contentType) Methods inherited from class jakarta.xml.soap.AttachmentPart
getContentId, getContentLocation, getContentType, setContentId, setContentLocation, setContentType
-
Constructor Details
-
AttachmentPartImpl
public AttachmentPartImpl() -
AttachmentPartImpl
public AttachmentPartImpl(org.jvnet.mimepull.MIMEPart part)
-
-
Method Details
-
getSize
- Specified by:
getSizein classAttachmentPart- Throws:
SOAPException
-
clearContent
public void clearContent()- Specified by:
clearContentin classAttachmentPart
-
getContent
- Specified by:
getContentin classAttachmentPart- Throws:
SOAPException
-
setContent
- Specified by:
setContentin classAttachmentPart- Throws:
IllegalArgumentException
-
getDataHandler
- Specified by:
getDataHandlerin classAttachmentPart- Throws:
SOAPException
-
setDataHandler
public void setDataHandler(jakarta.activation.DataHandler dataHandler) throws IllegalArgumentException - Specified by:
setDataHandlerin classAttachmentPart- Throws:
IllegalArgumentException
-
removeAllMimeHeaders
public void removeAllMimeHeaders()- Specified by:
removeAllMimeHeadersin classAttachmentPart
-
removeMimeHeader
- Specified by:
removeMimeHeaderin classAttachmentPart
-
getMimeHeader
- Specified by:
getMimeHeaderin classAttachmentPart
-
setMimeHeader
- Specified by:
setMimeHeaderin classAttachmentPart
-
addMimeHeader
- Specified by:
addMimeHeaderin classAttachmentPart
-
getAllMimeHeaders
- Specified by:
getAllMimeHeadersin classAttachmentPart
-
getMatchingMimeHeaders
- Specified by:
getMatchingMimeHeadersin classAttachmentPart
-
getNonMatchingMimeHeaders
- Specified by:
getNonMatchingMimeHeadersin classAttachmentPart
-
copyMimeHeaders
- Throws:
SOAPException
-
copyMimeHeaders
- Throws:
SOAPException
-
setBase64Content
- Specified by:
setBase64Contentin classAttachmentPart- Throws:
SOAPException
-
getBase64Content
- Specified by:
getBase64Contentin classAttachmentPart- Throws:
SOAPException
-
setRawContent
- 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
- Specified by:
getRawContentin classAttachmentPart- Throws:
SOAPException
-
getRawContentBytes
- Specified by:
getRawContentBytesin classAttachmentPart- Throws:
SOAPException
-
equals
-
hashCode
public int hashCode() -
getMimeHeaders
-
initializeJavaActivationHandlers
public static void initializeJavaActivationHandlers()
-