public class ContentType extends Object implements Serializable
MimeType - type :-(http://www.w3.org/Protocols/rfc1341/7_2_Multipart.html) text/plain text/html text/richtext - Not Supported text/x-whatever - Not Supported text/xml - Not Supported multipart/mixed multipart/alternative - Can be considered Spam @ see http://en.wikipedia.org/wiki/MIME#Alternative multipart/digest - Not Supported multipart/parallel (Works with MAC for embedded images) ... Others - Not Supported yet
Modifier and Type | Field and Description |
---|---|
static ContentType |
HTML |
static ContentType |
MULTIPART_ALTERNATIVE |
static ContentType |
MULTIPART_MIXED |
static ContentType |
MULTIPART_RELATED |
static ContentType |
TEXT |
Constructor and Description |
---|
ContentType() |
ContentType(MimeType type) |
Modifier and Type | Method and Description |
---|---|
MimeType |
getType()
The Type
|
String |
getVersion()
A ContentType version, if there are multiple messages of different types
|
void |
setType(MimeType type)
The Type
|
void |
setVersion(String version)
A ContentType version, if there are multiple messages of different types
|
public static ContentType HTML
public static ContentType TEXT
public static ContentType MULTIPART_MIXED
public static ContentType MULTIPART_ALTERNATIVE
http://en.wikipedia.org/wiki/MIME#Alternative
public static ContentType MULTIPART_RELATED
public ContentType()
public ContentType(MimeType type)
public void setVersion(String version)
public void setType(MimeType type)
public String getVersion()
public MimeType getType()
Copyright © 2018. All rights reserved.