Package org.frankframework.core
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 ResourcegetResource(String resource) static ResourcegetResource(IScopeProvider scopeProvider, String resource) static ResourcegetResource(IScopeProvider scopeProvider, String resource, String allowedProtocols) abstract Stringabstract InputStreamtoString()
-
Field Details
-
scopeProvider
-
-
Constructor Details
-
Resource
-
-
Method Details
-
getResource
-
getResource
@Nullable public static Resource getResource(@Nullable IScopeProvider scopeProvider, @Nonnull String resource) -
getResource
@Nullable public static 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
-