|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.mimepull.MIMEConfig
public class MIMEConfig
Configuration for MIME message parsing and storing.
Constructor Summary | |
---|---|
MIMEConfig()
|
Method Summary | |
---|---|
void |
setDir(java.lang.String dir)
|
void |
setMemoryThreshold(long memoryThreshold)
If the attachment is greater than the threshold, it is written to the disk. |
void |
setParseEagerly(boolean parseEagerly)
|
void |
validate()
Validates if it can create temporary files. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIMEConfig()
Method Detail |
---|
public void setParseEagerly(boolean parseEagerly)
public void setMemoryThreshold(long memoryThreshold)
memoryThreshold
- no of bytes per attachment
if -1, then the whole attachment is kept in memorypublic void setDir(java.lang.String dir)
dir
- public void validate()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |