ConfigurationSource
public class CatalinaBaseConfigurationSource extends java.lang.Object implements ConfigurationSource
ConfigurationSource.Resource
Modifier and Type | Field | Description |
---|---|---|
protected static StringManager |
sm |
Constructor | Description |
---|---|
CatalinaBaseConfigurationSource(java.io.File catalinaBaseFile,
java.lang.String serverXmlPath) |
Modifier and Type | Method | 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.
|
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-2019 Apache Software Foundation. All Rights Reserved.