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 | Method and Description |
|---|---|
default ConfigurationSource.Resource |
getConfResource(java.lang.String name)
Get a resource, based on the conf path.
|
ConfigurationSource.Resource |
getResource(java.lang.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.
|
java.net.URI |
getURI(java.lang.String name)
Get a URI to the given resource.
|
default ConfigurationSource.Resource getServerXml() throws java.io.IOException
java.io.IOException - if an error occurs or if the resource does not existdefault ConfigurationSource.Resource getSharedWebXml() throws java.io.IOException
java.io.IOException - if an error occurs or if the resource does not existdefault ConfigurationSource.Resource getConfResource(java.lang.String name) throws java.io.IOException
name - The resource namejava.io.IOException - if an error occurs or if the resource does not existConfigurationSource.Resource getResource(java.lang.String name) throws java.io.IOException
name - The resource namejava.io.IOException - if an error occurs or if the resource does not existjava.net.URI getURI(java.lang.String name)
name - The resource nameCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.