|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.mail.resolver.DataSourceBaseResolver
org.apache.commons.mail.resolver.DataSourceFileResolver
public class DataSourceFileResolver
Creates a DataSource based on an URL. The implementation
also resolves file resources.
| Constructor Summary | |
|---|---|
DataSourceFileResolver()
Constructor. |
|
DataSourceFileResolver(File baseDir)
Constructor. |
|
DataSourceFileResolver(File baseDir,
boolean lenient)
Constructor. |
|
| Method Summary | |
|---|---|
File |
getBaseDir()
Get the base directory used for resolving relative resource locations. |
DataSource |
resolve(String resourceLocation)
Resolves the given resource location to a DataSource. |
DataSource |
resolve(String resourceLocation,
boolean isLenient)
Resolves the given resource location to a DataSource. |
| Methods inherited from class org.apache.commons.mail.resolver.DataSourceBaseResolver |
|---|
isCid, isFileUrl, isHttpUrl, isLenient |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataSourceFileResolver()
public DataSourceFileResolver(File baseDir)
baseDir - the base directory of the resource when resolving relative paths
public DataSourceFileResolver(File baseDir,
boolean lenient)
baseDir - the base directory of the resource when resolving relative pathslenient - shall we ignore resources not found or complain with an exception| Method Detail |
|---|
public File getBaseDir()
public DataSource resolve(String resourceLocation)
throws IOException
DataSource.
resourceLocation - the location of the resource
DataSource
IOException - the resource was not found
public DataSource resolve(String resourceLocation,
boolean isLenient)
throws IOException
DataSource.
resourceLocation - the location of the resourceisLenient - shall we ignore resources not found or complain with an exception?
IOException - resolving the resource failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||