|
||||||||||
| 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.DataSourceClassPathResolver
public class DataSourceClassPathResolver
Creates a DataSource based on an class path.
| Constructor Summary | |
|---|---|
DataSourceClassPathResolver()
Constructor |
|
DataSourceClassPathResolver(String classPathBase)
Constructor. |
|
DataSourceClassPathResolver(String classPathBase,
boolean lenient)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getClassPathBase()
|
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 DataSourceClassPathResolver()
public DataSourceClassPathResolver(String classPathBase)
classPathBase - a base class path
public DataSourceClassPathResolver(String classPathBase,
boolean lenient)
classPathBase - a base class pathlenient - shall we ignore resources not found or throw an exception?| Method Detail |
|---|
public String getClassPathBase()
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 | |||||||||