java.lang.Object
org.mule.runtime.dsl.api.ConfigResource
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConfigResource(String resourceName) ConfigResource(String resourceName, InputStream inputStream) ConfigResource(String resourceName, InputStream inputStream, long lastModifiedDate) ConfigResource(String resourceName, URL url) ConfigResource(URL url) -
Method Summary
-
Field Details
-
resourceName
-
-
Constructor Details
-
ConfigResource
- Throws:
IOException
-
ConfigResource
-
ConfigResource
- Throws:
IOException- Since:
- 1.5
-
ConfigResource
-
ConfigResource
-
-
Method Details
-
getInputStream
- Throws:
IOException
-
getUrl
-
getResourceName
-
isStreamOpen
public boolean isStreamOpen() -
getLastModified
public long getLastModified()- Returns:
- the
File.lastModified()of the file from where this resource is loaded, or0Lif there is no file. - Since:
- 1.8
-
equals
-
hashCode
public int hashCode() -
toString
-