Class DataSourceBaseResolver
java.lang.Object
org.apache.commons.mail.resolver.DataSourceBaseResolver
- All Implemented Interfaces:
DataSourceResolver
- Direct Known Subclasses:
DataSourceClassPathResolver, DataSourceCompositeResolver, DataSourceFileResolver, DataSourcePathResolver, DataSourceUrlResolver
Abstract class for resolvers.
- Since:
- 1.3
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance.DataSourceBaseResolver(boolean lenient) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanTests whether the argument is a content id.protected booleanTests whether this a file URL.protected booleanTests whether this a HTTP or HTTPS URL.booleanTests whether to ignore resources not found or throw an exception.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface DataSourceResolver
resolve, resolve
-
Constructor Details
-
DataSourceBaseResolver
public DataSourceBaseResolver()Constructs a new instance. -
DataSourceBaseResolver
Constructs a new instance.- Parameters:
lenient- shall we ignore resources not found or throw an exception?
-
-
Method Details
-
isCid
-
isFileUrl
-
isHttpUrl
-
isLenient
Tests whether to ignore resources not found or throw an exception.- Returns:
- the lenient flag.
-