Class CatalinaBaseConfigurationSource

    • Constructor Detail

      • CatalinaBaseConfigurationSource

        public CatalinaBaseConfigurationSource​(java.io.File catalinaBaseFile,
                                               java.lang.String serverXmlPath)
    • Method Detail

      • getServerXml

        public ConfigurationSource.Resource getServerXml()
                                                  throws java.io.IOException
        Description copied from interface: ConfigurationSource
        Returns the contents of the main conf/server.xml file.
        Specified by:
        getServerXml in interface ConfigurationSource
        Returns:
        the server.xml as an InputStream
        Throws:
        java.io.IOException - if an error occurs or if the resource does not exist
      • getResource

        public ConfigurationSource.Resource getResource​(java.lang.String name)
                                                 throws java.io.IOException
        Description copied from interface: ConfigurationSource
        Get a resource, not based on the conf path.
        Specified by:
        getResource in interface ConfigurationSource
        Parameters:
        name - The resource name
        Returns:
        the resource
        Throws:
        java.io.IOException - if an error occurs or if the resource does not exist
      • getURI

        public java.net.URI getURI​(java.lang.String name)
        Description copied from interface: ConfigurationSource
        Get a URI to the given resource. Unlike getResource, this will also return URIs to locations where no resource exists.
        Specified by:
        getURI in interface ConfigurationSource
        Parameters:
        name - The resource name
        Returns:
        a URI representing the resource location