Package org.apache.commons.mail.resolver
Class DataSourceBaseResolver
java.lang.Object
org.apache.commons.mail.resolver.DataSourceBaseResolver
- All Implemented Interfaces:
DataSourceResolver
- Direct Known Subclasses:
DataSourceClassPathResolver
,DataSourceCompositeResolver
,DataSourceFileResolver
,DataSourceUrlResolver
Base class for various resolvers.
- Since:
- 1.3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
Is this a content id?protected boolean
Is this a file URL?protected boolean
Is this a HTTP/HTTPS URL?boolean
Shall we ignore resources not found or throw an exception?Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.commons.mail.DataSourceResolver
resolve, resolve
-
Constructor Details
-
DataSourceBaseResolver
public DataSourceBaseResolver()Constructor. -
DataSourceBaseResolver
Constructor.- Parameters:
lenient
- shall we ignore resources not found or throw an exception?
-
-
Method Details
-
isLenient
Shall we ignore resources not found or throw an exception?- Returns:
- the lenient flag
-
isCid
Is this a content id?- Parameters:
resourceLocation
- the resource location- Returns:
- true if it is a CID
-
isFileUrl
Is this a file URL?- Parameters:
urlString
- the URL string- Returns:
- true if it is a file URL
-
isHttpUrl
Is this a HTTP/HTTPS URL?- Parameters:
urlString
- the URL string- Returns:
- true if it is a HTTP/HTTPS URL
-