com.sun.xml.messaging.saaj.soap
Class AttachmentPartImpl
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)
|
Method Summary |
void |
addMimeHeader(String name,
String value)
|
void |
clearContent()
|
static void |
copyMimeHeaders(MimeBodyPart mbp,
AttachmentPartImpl ap)
|
static void |
copyMimeHeaders(MimeHeaders headers,
MimeBodyPart mbp)
|
boolean |
equals(Object o)
|
Iterator |
getAllMimeHeaders()
|
InputStream |
getBase64Content()
|
Object |
getContent()
|
DataHandler |
getDataHandler()
|
Iterator |
getMatchingMimeHeaders(String[] names)
|
String[] |
getMimeHeader(String name)
|
MimeHeaders |
getMimeHeaders()
|
Iterator |
getNonMatchingMimeHeaders(String[] names)
|
InputStream |
getRawContent()
|
byte[] |
getRawContentBytes()
|
int |
getSize()
|
int |
hashCode()
|
static void |
initializeJavaActivationHandlers()
|
void |
removeAllMimeHeaders()
|
void |
removeMimeHeader(String header)
|
void |
setBase64Content(InputStream content,
String contentType)
|
void |
setContent(Object object,
String contentType)
|
void |
setDataHandler(DataHandler dataHandler)
|
void |
setMimeHeader(String name,
String value)
|
void |
setRawContent(InputStream content,
String contentType)
|
void |
setRawContentBytes(byte[] content,
int off,
int len,
String contentType)
|
log
protected static final Logger log
AttachmentPartImpl
public AttachmentPartImpl()
AttachmentPartImpl
public AttachmentPartImpl(MIMEPart part)
getSize
public int getSize()
throws SOAPException
- Specified by:
getSize in class AttachmentPart
- Throws:
SOAPException
clearContent
public void clearContent()
- Specified by:
clearContent in class AttachmentPart
getContent
public Object getContent()
throws SOAPException
- Specified by:
getContent in class AttachmentPart
- Throws:
SOAPException
setContent
public void setContent(Object object,
String contentType)
throws IllegalArgumentException
- Specified by:
setContent in class AttachmentPart
- Throws:
IllegalArgumentException
getDataHandler
public DataHandler getDataHandler()
throws SOAPException
- Specified by:
getDataHandler in class AttachmentPart
- Throws:
SOAPException
setDataHandler
public void setDataHandler(DataHandler dataHandler)
throws IllegalArgumentException
- Specified by:
setDataHandler in class AttachmentPart
- Throws:
IllegalArgumentException
removeAllMimeHeaders
public void removeAllMimeHeaders()
- Specified by:
removeAllMimeHeaders in class AttachmentPart
removeMimeHeader
public void removeMimeHeader(String header)
- Specified by:
removeMimeHeader in class AttachmentPart
getMimeHeader
public String[] getMimeHeader(String name)
- Specified by:
getMimeHeader in class AttachmentPart
setMimeHeader
public void setMimeHeader(String name,
String value)
- Specified by:
setMimeHeader in class AttachmentPart
addMimeHeader
public void addMimeHeader(String name,
String value)
- Specified by:
addMimeHeader in class AttachmentPart
getAllMimeHeaders
public Iterator getAllMimeHeaders()
- Specified by:
getAllMimeHeaders in class AttachmentPart
getMatchingMimeHeaders
public Iterator getMatchingMimeHeaders(String[] names)
- Specified by:
getMatchingMimeHeaders in class AttachmentPart
getNonMatchingMimeHeaders
public Iterator getNonMatchingMimeHeaders(String[] names)
- Specified by:
getNonMatchingMimeHeaders in class AttachmentPart
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:
setBase64Content in class AttachmentPart
- Throws:
SOAPException
getBase64Content
public InputStream getBase64Content()
throws SOAPException
- Specified by:
getBase64Content in class AttachmentPart
- Throws:
SOAPException
setRawContent
public void setRawContent(InputStream content,
String contentType)
throws SOAPException
- Specified by:
setRawContent in class AttachmentPart
- Throws:
SOAPException
setRawContentBytes
public void setRawContentBytes(byte[] content,
int off,
int len,
String contentType)
throws SOAPException
- Specified by:
setRawContentBytes in class AttachmentPart
- Throws:
SOAPException
getRawContent
public InputStream getRawContent()
throws SOAPException
- Specified by:
getRawContent in class AttachmentPart
- Throws:
SOAPException
getRawContentBytes
public byte[] getRawContentBytes()
throws SOAPException
- Specified by:
getRawContentBytes in class AttachmentPart
- Throws:
SOAPException
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getMimeHeaders
public MimeHeaders getMimeHeaders()
initializeJavaActivationHandlers
public static void initializeJavaActivationHandlers()
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.