Class Resource
java.lang.Object
org.frankframework.core.Resource
- All Implemented Interfaces:
IScopeProvider
- Direct Known Subclasses:
BytesResource, URLResource
Reference to a resource, for instance on the classpath. Can be accessed multiple times.
- Author:
- Gerrit van Brakel
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasSource()org.apache.xerces.xni.parser.XMLInputSourcefinal ClassLoaderThis ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.getName()static @Nullable ResourcegetResource(@NonNull String resource) static @Nullable ResourcegetResource(@Nullable IScopeProvider scopeProvider, @NonNull String resource) static @Nullable ResourcegetResource(@Nullable IScopeProvider scopeProvider, @NonNull String resource, String allowedProtocols) abstract Stringabstract InputStreamtoString()
-
Field Details
-
scopeProvider
-
-
Constructor Details
-
Resource
-
-
Method Details
-
getResource
-
getResource
public static @Nullable Resource getResource(@Nullable IScopeProvider scopeProvider, @NonNull String resource) -
getResource
public static @Nullable Resource getResource(@Nullable IScopeProvider scopeProvider, @NonNull String resource, String allowedProtocols) -
getName
- Returns:
- Name of the resource
-
asSource
- Throws:
SAXExceptionIOException
-
asInputSource
- Throws:
IOException
-
asXMLInputSource
- Throws:
IOException
-
getSystemId
- Returns:
- Canonical path of the resource
-
openStream
- Throws:
IOException
-
getConfigurationClassLoader
Description copied from interface:IScopeProviderThis ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.- Specified by:
getConfigurationClassLoaderin interfaceIScopeProvider- Returns:
- returns the ClassLoader created by the
ClassLoaderManager.
-
toString
-