Class Source


  • public class Source
    extends Object
    Represents the source for the logging configuration.
    • Constructor Summary

      Constructors 
      Constructor Description
      Source​(File file)
      Constructs a new Source with the specified file.
      Source​(URI uri, long lastModified)
      Constructs a new Source from the specified URI.
      Source​(ConfigurationSource source)
      Constructs a Source from a ConfigurationSource.
    • Constructor Detail

      • Source

        public Source​(ConfigurationSource source)
        Constructs a Source from a ConfigurationSource.
        Parameters:
        source - The ConfigurationSource.
      • Source

        public Source​(File file)
        Constructs a new Source with the specified file. file.
        Parameters:
        file - the file where the input stream originated
      • Source

        public Source​(URI uri,
                      long lastModified)
        Constructs a new Source from the specified URI.
        Parameters:
        uri - the URL where the input stream originated
    • Method Detail

      • getFile

        public File getFile()
        Returns the file configuration source, or null if this configuration source is based on an URL or has neither a file nor an URL.
        Returns:
        the configuration source file, or null
      • getURI

        public URI getURI()
        Returns the configuration source URL, or null if this configuration source is based on a file or has neither a file nor an URL.
        Returns:
        the configuration source URL, or null
      • getLocation

        public String getLocation()
        Returns a string describing the configuration source file or URL, or null if this configuration source has neither a file nor an URL.
        Returns:
        a string describing the configuration source file or URL, or null
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object