public class CatalinaBaseConfigurationSource extends java.lang.Object implements ConfigurationSource
ConfigurationSource.Resource
Modifier and Type | Field and Description |
---|---|
protected static StringManager |
sm |
DEFAULT
Constructor and Description |
---|
CatalinaBaseConfigurationSource(java.io.File catalinaBaseFile,
java.lang.String serverXmlPath) |
Modifier and Type | Method and Description |
---|---|
ConfigurationSource.Resource |
getResource(java.lang.String name)
Get a resource, not based on the conf path.
|
ConfigurationSource.Resource |
getServerXml()
Returns the contents of the main conf/server.xml file.
|
java.net.URI |
getURI(java.lang.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 CatalinaBaseConfigurationSource(java.io.File catalinaBaseFile, java.lang.String serverXmlPath)
public ConfigurationSource.Resource getServerXml() throws java.io.IOException
ConfigurationSource
getServerXml
in interface ConfigurationSource
java.io.IOException
- if an error occurs or if the resource does not existpublic ConfigurationSource.Resource getResource(java.lang.String name) throws java.io.IOException
ConfigurationSource
getResource
in interface ConfigurationSource
name
- The resource namejava.io.IOException
- if an error occurs or if the resource does not existpublic java.net.URI getURI(java.lang.String name)
ConfigurationSource
getURI
in interface ConfigurationSource
name
- The resource nameCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.