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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasSource()
org.apache.xerces.xni.parser.XMLInputSource
final ClassLoader
This ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.getName()
static Resource
getResource
(String resource) static Resource
getResource
(IScopeProvider scopeProvider, String resource) static Resource
getResource
(IScopeProvider scopeProvider, String resource, String allowedProtocols) abstract String
abstract InputStream
toString()
-
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:
SAXException
IOException
-
asInputSource
- Throws:
IOException
-
asXMLInputSource
- Throws:
IOException
-
getSystemId
- Returns:
- Canonical path of the resource
-
openStream
- Throws:
IOException
-
getConfigurationClassLoader
Description copied from interface:IScopeProvider
This ClassLoader is set upon creation of the object, used to retrieve resources configured by the Ibis application.- Specified by:
getConfigurationClassLoader
in interfaceIScopeProvider
- Returns:
- returns the ClassLoader created by the
ClassLoaderManager
.
-
toString
-