public interface ConfigurationSource
Modifier and Type | Interface and Description |
---|---|
static class |
ConfigurationSource.Resource
Represents a resource: a stream to the resource associated with
its URI.
|
Modifier and Type | Field and Description |
---|---|
static ConfigurationSource |
DEFAULT |
Modifier and Type | Method and Description |
---|---|
default ConfigurationSource.Resource |
getConfResource(String name)
Get a resource, based on the conf path.
|
ConfigurationSource.Resource |
getResource(String name)
Get a resource, not based on the conf path.
|
default ConfigurationSource.Resource |
getServerXml()
Returns the contents of the main conf/server.xml file.
|
default ConfigurationSource.Resource |
getSharedWebXml()
Returns the contents of the shared conf/web.xml file.
|
URI |
getURI(String name)
Get a URI to the given resource.
|
static final ConfigurationSource DEFAULT
default ConfigurationSource.Resource getServerXml() throws IOException
IOException
- if an error occurs or if the resource does not existdefault ConfigurationSource.Resource getSharedWebXml() throws IOException
IOException
- if an error occurs or if the resource does not existdefault ConfigurationSource.Resource getConfResource(String name) throws IOException
name
- The resource nameIOException
- if an error occurs or if the resource does not existConfigurationSource.Resource getResource(String name) throws IOException
name
- The resource nameIOException
- if an error occurs or if the resource does not existCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.