@ThreadSafe public final class XMLSystemProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SYSTEM_PROPERTY_ELEMENT_ATTRIBUTE_LIMIT |
static String |
SYSTEM_PROPERTY_ENTITY_EXPANSION_LIMIT |
static String |
SYSTEM_PROPERTY_JDX_XML_ELEMENT_ATTRIBUTE_LIMIT |
static String |
SYSTEM_PROPERTY_JDX_XML_ENTITY_EXPANSION_LIMIT |
static String |
SYSTEM_PROPERTY_JDX_XML_MAX_GENERAL_ENTITY_SIZE_LIMIT |
static String |
SYSTEM_PROPERTY_JDX_XML_MAX_OCCUR |
static String |
SYSTEM_PROPERTY_JDX_XML_MAX_PARAMETER_ENTITY_SIZE_LIMIT |
static String |
SYSTEM_PROPERTY_JDX_XML_TOTAL_ENTITY_SIZE_LIMIT |
static String |
SYSTEM_PROPERTY_MAX_OCCUR |
| Modifier and Type | Method and Description |
|---|---|
static int |
getXMLElementAttributeLimit() |
static int |
getXMLEntityExpansionLimit() |
static int |
getXMLMaxGeneralEntitySizeLimit() |
static int |
getXMLMaxOccur() |
static int |
getXMLMaxParameterEntitySizeLimit() |
static int |
getXMLTotalEntitySizeLimit() |
static void |
setXMLElementAttributeLimit(int nElementAttributeLimit)
Limit the number of attributes an element can have.
|
static void |
setXMLElementAttributeLimit(String sElementAttributeLimit)
Limit the number of attributes an element can have.
|
static void |
setXMLElementAttributeLimitIfLarger(int nElementAttributeLimit)
The same as
setXMLElementAttributeLimit(int) but just that the
value is only set, if the limit is increased! |
static void |
setXMLEntityExpansionLimit(int nEntityExpansionLimit)
Limit the number of entity expansions.
|
static void |
setXMLEntityExpansionLimit(String sEntityExpansionLimit)
Limit the number of entity expansions.
|
static void |
setXMLEntityExpansionLimitIfLarger(int nMaxOccur)
The same as
setXMLEntityExpansionLimit(int) but just that the
value is only set, if the limit is increased! |
static void |
setXMLMaxGeneralEntitySizeLimit(int nMaxGeneralEntitySizeLimit)
Limit the maximum size of any general entities.
|
static void |
setXMLMaxGeneralEntitySizeLimit(String sMaxGeneralEntitySizeLimit)
Limit the maximum size of any general entities.
|
static void |
setXMLMaxGeneralEntitySizeLimitIfLarger(int nMaxGeneralEntitySizeLimit)
The same as
setXMLMaxGeneralEntitySizeLimit(int) but just that the
value is only set, if the limit is increased! |
static void |
setXMLMaxOccur(int nMaxOccur)
Limit the number of content model nodes that may be created when building a
grammar for a W3C XML Schema that contains maxOccurs attributes with values
other than "unbounded".
|
static void |
setXMLMaxOccur(String sMaxOccur)
Limit the number of content model nodes that may be created when building a
grammar for a W3C XML Schema that contains maxOccurs attributes with values
other than "unbounded".
|
static void |
setXMLMaxOccurIfLarger(int nMaxOccur)
The same as
setXMLMaxOccur(int) but just that the value is only
set, if the limit is increased! |
static void |
setXMLMaxParameterEntitySizeLimit(int nMaxParameterEntitySizeLimit)
Limit the maximum size of any parameter entities, including the result of
nesting multiple parameter entities.
|
static void |
setXMLMaxParameterEntitySizeLimit(String sMaxParameterEntitySizeLimit)
Limit the maximum size of any parameter entities, including the result of
nesting multiple parameter entities.
|
static void |
setXMLMaxParameterEntitySizeLimitIfLarger(int nMaxParameterEntitySizeLimit)
The same as
setXMLMaxParameterEntitySizeLimit(int) but just that
the value is only set, if the limit is increased! |
static void |
setXMLTotalEntitySizeLimit(int nTotalEntitySizeLimit)
Limit the total size of all entities that include general and parameter
entities.
|
static void |
setXMLTotalEntitySizeLimit(String sTotalEntitySizeLimit)
Limit the total size of all entities that include general and parameter
entities.
|
static void |
setXMLTotalEntitySizeLimitIfLarger(int nTotalEntitySizeLimit)
The same as
setXMLTotalEntitySizeLimit(int) but just that the
value is only set, if the limit is increased! |
public static final String SYSTEM_PROPERTY_JDX_XML_ENTITY_EXPANSION_LIMIT
public static final String SYSTEM_PROPERTY_ENTITY_EXPANSION_LIMIT
public static final String SYSTEM_PROPERTY_JDX_XML_ELEMENT_ATTRIBUTE_LIMIT
public static final String SYSTEM_PROPERTY_ELEMENT_ATTRIBUTE_LIMIT
public static final String SYSTEM_PROPERTY_JDX_XML_MAX_OCCUR
public static final String SYSTEM_PROPERTY_MAX_OCCUR
public static final String SYSTEM_PROPERTY_JDX_XML_TOTAL_ENTITY_SIZE_LIMIT
public static final String SYSTEM_PROPERTY_JDX_XML_MAX_GENERAL_ENTITY_SIZE_LIMIT
public static final String SYSTEM_PROPERTY_JDX_XML_MAX_PARAMETER_ENTITY_SIZE_LIMIT
public static void setXMLEntityExpansionLimit(int nEntityExpansionLimit)
nEntityExpansionLimit - A positive integer. Values ≤ 0 are treated as no limit.public static void setXMLEntityExpansionLimit(@Nullable String sEntityExpansionLimit)
sEntityExpansionLimit - A positive integer as a String. Values ≤ 0 are treated as no
limit. null means the property is deletedpublic static void setXMLEntityExpansionLimitIfLarger(int nMaxOccur)
setXMLEntityExpansionLimit(int) but just that the
value is only set, if the limit is increased!nMaxOccur - A positive integer. Values ≤ 0 are treated as no limit.setXMLEntityExpansionLimit(int)public static int getXMLEntityExpansionLimit()
public static void setXMLElementAttributeLimit(int nElementAttributeLimit)
nElementAttributeLimit - A positive integer. Values ≤ 0 are treated as no limit.public static void setXMLElementAttributeLimit(@Nullable String sElementAttributeLimit)
sElementAttributeLimit - A positive integer. Values ≤ 0 are treated as no limit.
null means the property is deletedpublic static void setXMLElementAttributeLimitIfLarger(int nElementAttributeLimit)
setXMLElementAttributeLimit(int) but just that the
value is only set, if the limit is increased!nElementAttributeLimit - A positive integer. Values ≤ 0 are treated as no limit.setXMLElementAttributeLimit(int)public static int getXMLElementAttributeLimit()
public static void setXMLMaxOccur(int nMaxOccur)
nMaxOccur - A positive integer. Values ≤ 0 are treated as no limit.public static void setXMLMaxOccur(@Nullable String sMaxOccur)
sMaxOccur - A positive integer. Values ≤ 0 are treated as no limit.
null means the property is deleted.public static void setXMLMaxOccurIfLarger(int nMaxOccur)
setXMLMaxOccur(int) but just that the value is only
set, if the limit is increased!nMaxOccur - A positive integer. Values ≤ 0 are treated as no limit.setXMLMaxOccur(int)public static int getXMLMaxOccur()
public static void setXMLTotalEntitySizeLimit(int nTotalEntitySizeLimit)
nTotalEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.public static void setXMLTotalEntitySizeLimit(@Nullable String sTotalEntitySizeLimit)
sTotalEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.
null means the property is deleted.public static void setXMLTotalEntitySizeLimitIfLarger(int nTotalEntitySizeLimit)
setXMLTotalEntitySizeLimit(int) but just that the
value is only set, if the limit is increased!nTotalEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.setXMLTotalEntitySizeLimit(int)public static int getXMLTotalEntitySizeLimit()
public static void setXMLMaxGeneralEntitySizeLimit(int nMaxGeneralEntitySizeLimit)
nMaxGeneralEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.public static void setXMLMaxGeneralEntitySizeLimit(@Nullable String sMaxGeneralEntitySizeLimit)
sMaxGeneralEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.
null means the property is deleted.public static void setXMLMaxGeneralEntitySizeLimitIfLarger(int nMaxGeneralEntitySizeLimit)
setXMLMaxGeneralEntitySizeLimit(int) but just that the
value is only set, if the limit is increased!nMaxGeneralEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.setXMLMaxGeneralEntitySizeLimit(int)public static int getXMLMaxGeneralEntitySizeLimit()
public static void setXMLMaxParameterEntitySizeLimit(int nMaxParameterEntitySizeLimit)
nMaxParameterEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.public static void setXMLMaxParameterEntitySizeLimit(@Nullable String sMaxParameterEntitySizeLimit)
sMaxParameterEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.
null means the property is deleted.public static void setXMLMaxParameterEntitySizeLimitIfLarger(int nMaxParameterEntitySizeLimit)
setXMLMaxParameterEntitySizeLimit(int) but just that
the value is only set, if the limit is increased!nMaxParameterEntitySizeLimit - A positive integer. Values ≤ 0 are treated as no limit.setXMLMaxParameterEntitySizeLimit(int)public static int getXMLMaxParameterEntitySizeLimit()
Copyright © 2014–2019 Philip Helger. All rights reserved.