aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/java/com/libmailcore/AbstractPart.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/libmailcore/AbstractPart.java')
-rw-r--r--src/java/com/libmailcore/AbstractPart.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/java/com/libmailcore/AbstractPart.java b/src/java/com/libmailcore/AbstractPart.java
index 6ffbc746..61ae15d2 100644
--- a/src/java/com/libmailcore/AbstractPart.java
+++ b/src/java/com/libmailcore/AbstractPart.java
@@ -2,35 +2,69 @@ package com.libmailcore;
import java.util.AbstractList;
+/** Abstract MIME part. */
public class AbstractPart extends NativeObject {
+ /**
+ Returns the type of the part.
+ @see PartType.
+ */
public native int partType();
+ /**
+ Sets the type of the part.
+ @see PartType.
+ */
public native void setPartType(int partType);
+ /** Returns filename of the attachment. */
public native String filename();
+ /** Sets the filename of the attachment. */
public native void setFilename(String filename);
+ /** Returns the charset encoding of the attachment. */
public native String charset();
+ /** Sets the charset encoding of the attachment. */
public native void setCharset(String charset);
+ /**
+ Returns the uniqueID of the attachment.
+ The uniqueID is an identifier unique in the scope of the message.
+ */
public native String uniqueID();
+ /** Sets the unique identifier of the attachment. */
public native void setUniqueID(String uniqueID);
+ /** Returns the Content-ID of the attachment. */
public native String contentID();
+ /** Sets the Content-ID of the attachment. */
public native void setContentID(String contentID);
+ /** Returns the Content-Location of the attachment. */
public native String contentLocation();
+ /** Sets the Content-Location of the attachment. */
public native void setContentLocation(String contentLocation);
+ /** Returns the Content-Description of the attachment. */
public native String contentDescription();
+ /** Sets the Content-Description of the attachment. */
public native void setContentDescription(String contentDescription);
+ /** Returns the hint about whether the attachment should be shown inline. */
public native boolean isInlineAttachment();
+ /** Sets the hint about whether the attachment should be shown inline. */
public native void setInlineAttachment(boolean inlineAttachment);
+ /** Returns the MIME part with the given Content-ID. */
public native AbstractPart partForContentID(String contentID);
+ /**
+ Returns the MIME part with the given uniqueID.
+ @see AbtractPart#uniqueID()
+ */
public native AbstractPart partForUniqueID(String uniqueID);
+ /** Sets a Content-Type parameter. */
public native void setContentTypeParameter(String name, String value);
+ /** Returns a Content-Type parameter for a given name. */
public native String contentTypeParameterValueForName(String name);
+ /** Returns the list of all parameters names of Content-Type. */
public native AbstractList<String> allContentTypeParametersNames();
}