Class XmlEncodingBase
java.lang.Object
org.apache.tomcat.util.descriptor.web.XmlEncodingBase
- Direct Known Subclasses:
- ErrorPage,- FilterMap,- JspPropertyGroup,- LoginConfig,- SecurityCollection,- SecurityConstraint,- WebXml
Base class for those elements that need to track the encoding used in the
 source XML.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionObtain the character encoding of the XML source that was used to populated this object.Deprecated.This method will be removed in Tomcat 9voidsetCharset(Charset charset) voidsetEncoding(String encoding) Deprecated.This method will be removed in Tomcat 9
- 
Constructor Details- 
XmlEncodingBasepublic XmlEncodingBase()
 
- 
- 
Method Details- 
setEncodingDeprecated.This method will be removed in Tomcat 9- Parameters:
- encoding- The encoding of the XML source that was used to populated this object.
 
- 
getEncodingDeprecated.This method will be removed in Tomcat 9Obtain the encoding of the XML source that was used to populated this object.- Returns:
- The encoding of the associated XML source or UTF-8if the encoding could not be determined
 
- 
setCharset
- 
getCharsetObtain the character encoding of the XML source that was used to populated this object.- Returns:
- The character encoding of the associated XML source or
         UTF-8if the encoding could not be determined
 
 
-