Class CatalinaBaseConfigurationSource
java.lang.Object
org.apache.catalina.startup.CatalinaBaseConfigurationSource
- All Implemented Interfaces:
ConfigurationSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tomcat.util.file.ConfigurationSource
ConfigurationSource.Resource -
Field Summary
FieldsFields inherited from interface org.apache.tomcat.util.file.ConfigurationSource
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionCatalinaBaseConfigurationSource(File catalinaBaseFile, String serverXmlPath) -
Method Summary
Modifier and TypeMethodDescriptiongetResource(String name) Get a resource, not based on the conf path.Returns the contents of the main conf/server.xml file.Get a URI to the given resource.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.tomcat.util.file.ConfigurationSource
getConfResource, getSharedWebXml
-
Field Details
-
sm
-
LEGACY_SERVER_EMBED_XML
- See Also:
-
-
Constructor Details
-
CatalinaBaseConfigurationSource
-
-
Method Details
-
getServerXml
Description copied from interface:ConfigurationSourceReturns the contents of the main conf/server.xml file.- Specified by:
getServerXmlin interfaceConfigurationSource- Returns:
- the server.xml as an InputStream
- Throws:
IOException- if an error occurs or if the resource does not exist
-
getResource
Description copied from interface:ConfigurationSourceGet a resource, not based on the conf path.- Specified by:
getResourcein interfaceConfigurationSource- Parameters:
name- The resource name- Returns:
- the resource
- Throws:
IOException- if an error occurs or if the resource does not exist
-
getURI
Description copied from interface:ConfigurationSourceGet a URI to the given resource. Unlike getResource, this will also return URIs to locations where no resource exists.- Specified by:
getURIin interfaceConfigurationSource- Parameters:
name- The resource name- Returns:
- a URI representing the resource location
-