|
||||||||||
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.DataSourceUrlResolver
public class DataSourceUrlResolver
Creates a DataSource
based on an URL.
Constructor Summary | |
---|---|
DataSourceUrlResolver(URL baseUrl)
Constructor. |
|
DataSourceUrlResolver(URL baseUrl,
boolean lenient)
Constructor. |
Method Summary | |
---|---|
URL |
getBaseUrl()
Get the base URL 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 DataSourceUrlResolver(URL baseUrl)
baseUrl
- the base URL used for resolving relative resource locationspublic DataSourceUrlResolver(URL baseUrl, boolean lenient)
baseUrl
- the base URL used for resolving relative resource locationslenient
- shall we ignore resources not found or complain with an exceptionMethod Detail |
---|
public URL getBaseUrl()
public DataSource resolve(String resourceLocation) throws IOException
DataSource
.
resourceLocation
- the location of the resource
DataSource
IOException
- the resource was not foundpublic 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 |