Class ConfigResource

java.lang.Object
org.mule.runtime.dsl.api.ConfigResource

@NoExtend @NoInstantiate public final class ConfigResource extends Object
A ConfigResource holds the url description (or location) and the url stream. It is useful to associate the two for error reporting when the stream cannot be read.
  • Field Details

    • resourceName

      protected String resourceName
  • Constructor Details

  • Method Details

    • getInputStream

      public InputStream getInputStream() throws IOException
      Throws:
      IOException
    • getUrl

      public URL getUrl()
    • getResourceName

      public String getResourceName()
    • isStreamOpen

      public boolean isStreamOpen()
    • getLastModified

      public long getLastModified()
      Returns:
      the File.lastModified() of the file from where this resource is loaded, or 0L if there is no file.
      Since:
      1.8
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object