public class CatalinaBaseConfigurationSource extends Object implements ConfigurationSource
ConfigurationSource.Resource
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
DEFAULT
Constructor and Description |
---|
CatalinaBaseConfigurationSource(File catalinaBaseFile,
String serverXmlPath) |
Modifier and Type | Method and Description |
---|---|
ConfigurationSource.Resource |
getResource(String name)
Get a resource, not based on the conf path.
|
ConfigurationSource.Resource |
getServerXml()
Returns the contents of the main conf/server.xml file.
|
URI |
getURI(String name)
Get a URI to the given resource.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfResource, getSharedWebXml
protected static final StringManager sm
public ConfigurationSource.Resource getServerXml() throws IOException
ConfigurationSource
getServerXml
in interface ConfigurationSource
IOException
- if an error occurs or if the resource does not existpublic ConfigurationSource.Resource getResource(String name) throws IOException
ConfigurationSource
getResource
in interface ConfigurationSource
name
- The resource nameIOException
- if an error occurs or if the resource does not existpublic URI getURI(String name)
ConfigurationSource
getURI
in interface ConfigurationSource
name
- The resource nameCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.