Interface ContainerResourceLocator

    • Method Detail

      • getResource

        InputStream getResource​(String configName,
                                String defaultURI)
                         throws IllegalArgumentException,
                                IOException
        Get the resource specified by the container 'config' value.

        If the config value isn't specified, uses the defaultLocation.

        Parameters:
        configName - The container configuration entry name whose value specifies the location of the resource.
        defaultURI - The default location for the resource.
        Returns:
        The InputStream associated with resource.
        Throws:
        IllegalArgumentException - Illegal argument. Check the cause exception for more information.
        IOException - Unable to get the resource stream.
      • getBaseURI

        URI getBaseURI()
        Get the base URI for the locator instance.
        Returns:
        The base URI for the locator instance.