Class JspPropertyGroup
java.lang.Object
org.apache.tomcat.util.descriptor.web.XmlEncodingBase
org.apache.tomcat.util.descriptor.web.JspPropertyGroup
Representation of a jsp-property-group element in web.xml.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new JspPropertyGroup instance with default settings. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIncludeCoda(String includeCoda) Adds an include coda file path.voidaddIncludePrelude(String includePrelude) Adds an include prelude file path.voidaddUrlPattern(String urlPattern) Adds a URL pattern (URL-decoded) to this property group.voidaddUrlPatternDecoded(String urlPattern) Adds a pre-decoded URL pattern to this property group.Returns the buffer size for pages in this group.Returns the default content type for pages in this group.Returns whether deferred syntax is allowed as literal.Returns whether EL is ignored.Returns whether to error on EL not found.Returns whether to error on undeclared namespace.Returns the collection of include coda file paths.Returns the collection of include prelude file paths.getIsXml()Returns whether the pages in this group are XML.Returns the page encoding for pages in this group.Returns whether scripting is invalid for pages in this group.Returns whether to trim directive whitespaces.Returns the set of URL patterns for this property group.voidSets the buffer size for pages in this group.voidsetDefaultContentType(String defaultContentType) Sets the default content type for pages in this group.voidsetDeferredSyntax(String deferredSyntax) Sets whether deferred syntax is allowed as literal.voidsetElIgnored(String elIgnored) Sets whether EL is ignored.voidsetErrorOnELNotFound(String errorOnELNotFound) Sets whether to error on EL not found.voidsetErrorOnUndeclaredNamespace(String errorOnUndeclaredNamespace) Sets whether to error on undeclared namespace.voidSets whether the pages in this group are XML.voidsetPageEncoding(String pageEncoding) Sets the page encoding for pages in this group.voidsetScriptingInvalid(String scriptingInvalid) Sets whether scripting is invalid for pages in this group.voidsetTrimWhitespace(String trimWhitespace) Sets whether to trim directive whitespaces.Methods inherited from class XmlEncodingBase
getCharset, setCharset
-
Constructor Details
-
JspPropertyGroup
public JspPropertyGroup()Creates a new JspPropertyGroup instance with default settings.
-
-
Method Details
-
setDeferredSyntax
Sets whether deferred syntax is allowed as literal.- Parameters:
deferredSyntax- the deferred syntax setting as a string boolean
-
getDeferredSyntax
Returns whether deferred syntax is allowed as literal.- Returns:
- the deferred syntax setting, or null if not set
-
setErrorOnELNotFound
Sets whether to error on EL not found.- Parameters:
errorOnELNotFound- the setting as a string boolean
-
getErrorOnELNotFound
Returns whether to error on EL not found.- Returns:
- the error on EL not found setting, or null if not set
-
setElIgnored
Sets whether EL is ignored.- Parameters:
elIgnored- the EL ignored setting as a string boolean
-
getElIgnored
Returns whether EL is ignored.- Returns:
- the EL ignored setting, or null if not set
-
addIncludeCoda
Adds an include coda file path.- Parameters:
includeCoda- the include coda file path
-
getIncludeCodas
Returns the collection of include coda file paths.- Returns:
- the include codas collection
-
addIncludePrelude
Adds an include prelude file path.- Parameters:
includePrelude- the include prelude file path
-
getIncludePreludes
Returns the collection of include prelude file paths.- Returns:
- the include preludes collection
-
setIsXml
Sets whether the pages in this group are XML.- Parameters:
isXml- the XML setting as a string boolean
-
getIsXml
Returns whether the pages in this group are XML.- Returns:
- the XML setting, or null if not set
-
setPageEncoding
Sets the page encoding for pages in this group.- Parameters:
pageEncoding- the page encoding
-
getPageEncoding
Returns the page encoding for pages in this group.- Returns:
- the page encoding, or null if not set
-
setScriptingInvalid
Sets whether scripting is invalid for pages in this group.- Parameters:
scriptingInvalid- the scripting invalid setting as a string boolean
-
getScriptingInvalid
Returns whether scripting is invalid for pages in this group.- Returns:
- the scripting invalid setting, or null if not set
-
setTrimWhitespace
Sets whether to trim directive whitespaces.- Parameters:
trimWhitespace- the trim whitespace setting as a string boolean
-
getTrimWhitespace
Returns whether to trim directive whitespaces.- Returns:
- the trim whitespace setting, or null if not set
-
addUrlPattern
Adds a URL pattern (URL-decoded) to this property group.- Parameters:
urlPattern- the URL pattern to add
-
addUrlPatternDecoded
Adds a pre-decoded URL pattern to this property group.- Parameters:
urlPattern- the decoded URL pattern to add
-
getUrlPatterns
-
setDefaultContentType
Sets the default content type for pages in this group.- Parameters:
defaultContentType- the default content type
-
getDefaultContentType
Returns the default content type for pages in this group.- Returns:
- the default content type, or null if not set
-
setBuffer
Sets the buffer size for pages in this group.- Parameters:
buffer- the buffer size setting
-
getBuffer
Returns the buffer size for pages in this group.- Returns:
- the buffer size, or null if not set
-
setErrorOnUndeclaredNamespace
Sets whether to error on undeclared namespace.- Parameters:
errorOnUndeclaredNamespace- the setting as a string boolean
-
getErrorOnUndeclaredNamespace
Returns whether to error on undeclared namespace.- Returns:
- the error on undeclared namespace setting, or null if not set
-