|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.james.mime4j.parser.MimeEntityConfig
public final class MimeEntityConfig
MIME entity configuration
| Constructor Summary | |
|---|---|
MimeEntityConfig()
|
|
| Method Summary | |
|---|---|
MimeEntityConfig |
clone()
|
long |
getMaxContentLen()
Returns the maximum content length limit |
int |
getMaxHeaderCount()
Returns the maximum header limit |
int |
getMaxLineLen()
Returns the maximum line length limit |
boolean |
isCountLineNumbers()
Returns the value of the line number counting mode. |
boolean |
isMaximalBodyDescriptor()
|
boolean |
isStrictParsing()
Returns the value of the strict parsing mode |
void |
setCountLineNumbers(boolean countLineNumbers)
Defines whether the parser should count line numbers. |
void |
setMaxContentLen(long maxContentLen)
Sets the maximum content length limit. |
void |
setMaxHeaderCount(int maxHeaderCount)
Sets the maximum header limit. |
void |
setMaximalBodyDescriptor(boolean maximalBodyDescriptor)
|
void |
setMaxLineLen(int maxLineLen)
Sets the maximum line length limit. |
void |
setStrictParsing(boolean strictParsing)
Defines whether minor violations of the MIME specification should be tolerated or should result in a MimeException. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MimeEntityConfig()
| Method Detail |
|---|
public boolean isMaximalBodyDescriptor()
public void setMaximalBodyDescriptor(boolean maximalBodyDescriptor)
public void setStrictParsing(boolean strictParsing)
MimeException. If this parameter
is set to true, a strict interpretation of the MIME
specification will be enforced, If this parameter is set to false
minor violations will result in a warning in the log.
strictParsing - value of the strict parsing modepublic boolean isStrictParsing()
setStrictParsing(boolean)public void setMaxLineLen(int maxLineLen)
MimeException if a line is encountered that exceeds the maximum
length limit. If this parameter is set to a non positive value the line length
check will be disabled.
maxLineLen - maximum line length limitpublic int getMaxLineLen()
setMaxLineLen(int)public void setMaxHeaderCount(int maxHeaderCount)
MimeException if the number of headers exceeds the maximum
limit. If this parameter is set to a non positive value the header limit check
will be disabled.
maxHeaderCount - maximum header limitpublic int getMaxHeaderCount()
setMaxHeaderCount(int)public void setMaxContentLen(long maxContentLen)
MimeException if a content body exceeds the maximum length limit.
If this parameter is set to a non positive value the content length
check will be disabled.
maxContentLen - maximum content length limitpublic long getMaxContentLen()
setMaxContentLen(long)public void setCountLineNumbers(boolean countLineNumbers)
countLineNumbers - value of the line number counting mode.public boolean isCountLineNumbers()
public MimeEntityConfig clone()
clone in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||