org.codehaus.xfire.attachments
Class JavaMailAttachments
java.lang.Object
org.codehaus.xfire.attachments.JavaMailAttachments
- All Implemented Interfaces:
- Attachments
public class JavaMailAttachments
- extends java.lang.Object
- implements Attachments
- Author:
- Dan Diephouse
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaMailAttachments
public JavaMailAttachments()
JavaMailAttachments
public JavaMailAttachments(javax.mail.internet.MimeMultipart multipart)
throws javax.mail.MessagingException
- Create Attachments from the MimeMultipart message.
- Parameters:
multipart
-
- Throws:
javax.mail.MessagingException
getSoapMessage
public Attachment getSoapMessage()
- Specified by:
getSoapMessage
in interface Attachments
- Returns:
- Returns the soapMessage.
setSoapMessage
public void setSoapMessage(Attachment soapMessage)
- Specified by:
setSoapMessage
in interface Attachments
- Parameters:
soapMessage
- The soapMessage to set.
addPart
public void addPart(Attachment part)
- Specified by:
addPart
in interface Attachments
getParts
public java.util.Iterator getParts()
- Specified by:
getParts
in interface Attachments
getPart
public Attachment getPart(java.lang.String id)
- Specified by:
getPart
in interface Attachments
size
public int size()
- Specified by:
size
in interface Attachments
write
public void write(java.io.OutputStream out)
throws java.io.IOException
- Specified by:
write
in interface Attachments
- Throws:
java.io.IOException
getMimeMultipart
public javax.mail.internet.MimeMultipart getMimeMultipart()
getContentType
public java.lang.String getContentType()
- Specified by:
getContentType
in interface Attachments
Copyright © 2004-2005 Codehaus. All Rights Reserved.