Package org.apache.catalina.startup
Class CatalinaBaseConfigurationSource
- java.lang.Object
- 
- org.apache.catalina.startup.CatalinaBaseConfigurationSource
 
- 
- All Implemented Interfaces:
- ConfigurationSource
 
 public class CatalinaBaseConfigurationSource extends java.lang.Object implements ConfigurationSource 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tomcat.util.file.ConfigurationSourceConfigurationSource.Resource
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected static StringManagersm- 
Fields inherited from interface org.apache.tomcat.util.file.ConfigurationSourceDEFAULT
 
- 
 - 
Constructor SummaryConstructors Constructor Description CatalinaBaseConfigurationSource(java.io.File catalinaBaseFile, java.lang.String serverXmlPath)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationSource.ResourcegetResource(java.lang.String name)Get a resource, not based on the conf path.ConfigurationSource.ResourcegetServerXml()Returns the contents of the main conf/server.xml file.java.net.URIgetURI(java.lang.String name)Get a URI to the given resource.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tomcat.util.file.ConfigurationSourcegetConfResource, getSharedWebXml
 
- 
 
- 
- 
- 
Field Detail- 
smprotected static final StringManager sm 
 
- 
 - 
Method Detail- 
getServerXmlpublic ConfigurationSource.Resource getServerXml() throws java.io.IOException Description copied from interface:ConfigurationSourceReturns the contents of the main conf/server.xml file.- Specified by:
- getServerXmlin interface- ConfigurationSource
- Returns:
- the server.xml as an InputStream
- Throws:
- java.io.IOException- if an error occurs or if the resource does not exist
 
 - 
getResourcepublic ConfigurationSource.Resource getResource(java.lang.String name) throws java.io.IOException Description copied from interface:ConfigurationSourceGet a resource, not based on the conf path.- Specified by:
- getResourcein interface- ConfigurationSource
- Parameters:
- name- The resource name
- Returns:
- the resource
- Throws:
- java.io.IOException- if an error occurs or if the resource does not exist
 
 - 
getURIpublic java.net.URI getURI(java.lang.String name) 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 interface- ConfigurationSource
- Parameters:
- name- The resource name
- Returns:
- a URI representing the resource location
 
 
- 
 
-