|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.hunnysoft.jmime.Options
public class Options
Class that defines global options.
This class provides access to options that affect the behavior of the library. The options are global.
The default values are reasonable. However, if you need to change any values, it is recommended that you set the option values at application start-up time.
| Constructor Summary | |
|---|---|
Options()
|
|
| Method Summary | |
|---|---|
static int |
maxDepth()
Gets the maximum depth of nested body parts for the parser. |
static void |
setMaxDepth(int n)
Sets the maximum depth of nested body parts for the parser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Options()
| Method Detail |
|---|
public static void setMaxDepth(int n)
In order to avoid the possibility of a denial-of-service attack, Hunny JMIME limits the maximum depth of nested body parts that the parser will automatically parse. The default value is 5, which is enough for virtually all email messages. However, the option is configurable via this function.
n - the maximum depth valuepublic static int maxDepth()
setMaxDepth(int)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||