public class MimeHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
protected int |
markSize |
protected javax.mail.Multipart |
theMultipart |
| Constructor and Description |
|---|
MimeHelper() |
MimeHelper(javax.mail.Multipart mp) |
| Modifier and Type | Method and Description |
|---|---|
BodyPartHelper |
getBodyPartHelper(int i) |
javax.mail.BodyPart[] |
getBodyParts()
get all the parts of of a multipart an
|
int |
getCount() |
javax.mail.BodyPart |
getCreatePartByCID(java.lang.String cid)
get the MIME BodyPart from a multiPart package with a given cid create one if it does not exist;
|
BodyPartHelper |
getCreatePartByLocalName(java.lang.String name)
get the MIME BodyPart from a multiPart package with a given cid create one if it does not exist;
|
int |
getMarkSize() |
javax.mail.Multipart |
getMultiPart() |
javax.mail.BodyPart |
getPartByCID(java.lang.String cid)
get the MIME BodyPart from a multiPart package with a given cid
|
BodyPartHelper |
getPartHelperByAttribute(java.lang.String key,
java.lang.String value)
get the MIME BodyPart from a multiPart package with a given header
|
BodyPartHelper |
getPartHelperByCID(java.lang.String cid)
get the MIME BodyPart from a multiPart package with a given cid
|
BodyPartHelper |
getPartHelperByLocalName(java.lang.String name) |
void |
setMarkSize(int markSize)
the maximum stream mark for resetting
|
protected javax.mail.Multipart theMultipart
protected int markSize
protected static final org.apache.commons.logging.Log log
public MimeHelper()
public MimeHelper(javax.mail.Multipart mp)
mp - public int getCount()
public javax.mail.Multipart getMultiPart()
public javax.mail.BodyPart getCreatePartByCID(java.lang.String cid)
cid - the cid of the requested bodypartpublic BodyPartHelper getCreatePartByLocalName(java.lang.String name)
name - the cid of the requested bodypartpublic javax.mail.BodyPart getPartByCID(java.lang.String cid)
cid - the cid of the requested bodypartpublic BodyPartHelper getPartHelperByCID(java.lang.String cid)
cid - the cid of the requested bodypartpublic BodyPartHelper getPartHelperByAttribute(java.lang.String key, java.lang.String value)
public BodyPartHelper getBodyPartHelper(int i)
i - public javax.mail.BodyPart[] getBodyParts()
public int getMarkSize()
public void setMarkSize(int markSize)
markSize - the markSize to setpublic BodyPartHelper getPartHelperByLocalName(java.lang.String name)