public class BodyPartAttachment extends Object implements Attachment
Attachment.AttachmentEncoding, Attachment.AttachmentType
Constructor and Description |
---|
BodyPartAttachment(javax.mail.BodyPart bodyPart,
AbstractHttpOperation operation,
boolean isRequest,
Attachment.AttachmentType attachmentType) |
Modifier and Type | Method and Description |
---|---|
Attachment.AttachmentType |
getAttachmentType() |
javax.mail.BodyPart |
getBodyPart() |
String |
getContentEncoding() |
String |
getContentID() |
String |
getContentType() |
Attachment.AttachmentEncoding |
getEncoding() |
String |
getId() |
InputStream |
getInputStream() |
String |
getName() |
String |
getPart() |
long |
getSize() |
String |
getUrl() |
boolean |
isCached() |
void |
release() |
void |
setAttachmentType(Attachment.AttachmentType attachmentType) |
void |
setContentType(String contentType) |
void |
setOperation(WsdlOperation operation) |
void |
setPart(String part) |
public BodyPartAttachment(javax.mail.BodyPart bodyPart, AbstractHttpOperation operation, boolean isRequest, Attachment.AttachmentType attachmentType)
public javax.mail.BodyPart getBodyPart()
public String getContentType()
getContentType
in interface Attachment
public Attachment.AttachmentEncoding getEncoding()
getEncoding
in interface Attachment
public InputStream getInputStream() throws Exception
getInputStream
in interface Attachment
Exception
public String getName()
getName
in interface Attachment
public String getPart()
getPart
in interface Attachment
public long getSize()
getSize
in interface Attachment
public String getUrl()
getUrl
in interface Attachment
public void setContentType(String contentType)
setContentType
in interface Attachment
public void setPart(String part)
setPart
in interface Attachment
public boolean isCached()
isCached
in interface Attachment
public Attachment.AttachmentType getAttachmentType()
getAttachmentType
in interface Attachment
public void release()
public String getContentID()
getContentID
in interface Attachment
public void setOperation(WsdlOperation operation)
public void setAttachmentType(Attachment.AttachmentType attachmentType)
public String getContentEncoding()
getContentEncoding
in interface Attachment
public String getId()
getId
in interface Attachment
Copyright © 2019. All Rights Reserved.