Package org.apache.commons.mail2.javax
Interface DataSourceResolver
- All Known Implementing Classes:
DataSourceBaseResolver
,DataSourceClassPathResolver
,DataSourceCompositeResolver
,DataSourceFileResolver
,DataSourcePathResolver
,DataSourceUrlResolver
public interface DataSourceResolver
Creates a
DataSource
based on an URL.- Since:
- 1.3
-
Method Summary
Modifier and TypeMethodDescriptionResolves the given resource location to aDataSource
.Resolves the given resource location to aDataSource
.
-
Method Details
-
resolve
Resolves the given resource location to aDataSource
.- Parameters:
resourceLocation
- the location of the resource- Returns:
- the
DataSource
- Throws:
IOException
- the resource was not found
-
resolve
Resolves the given resource location to aDataSource
.- Parameters:
resourceLocation
- the location of the resourceisLenient
- shall we ignore resources not found or complain with an exception?- Returns:
- the data source containing the resource or null if the resource was not found in lenient mode
- Throws:
IOException
- resolving the resource failed
-