public class DataSourceUrlResolver extends DataSourceBaseResolver
DataSource based on an URL.| Constructor and Description |
|---|
DataSourceUrlResolver(java.net.URL baseUrl)
Constructor.
|
DataSourceUrlResolver(java.net.URL baseUrl,
boolean lenient)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.URL |
getBaseUrl()
Get the base URL used for resolving relative resource locations.
|
javax.activation.DataSource |
resolve(java.lang.String resourceLocation)
Resolves the given resource location to a
DataSource. |
javax.activation.DataSource |
resolve(java.lang.String resourceLocation,
boolean isLenient)
Resolves the given resource location to a
DataSource. |
isLenientpublic DataSourceUrlResolver(java.net.URL baseUrl)
baseUrl - the base URL used for resolving relative resource locationspublic DataSourceUrlResolver(java.net.URL baseUrl,
boolean lenient)
baseUrl - the base URL used for resolving relative resource locationslenient - shall we ignore resources not found or complain with an exceptionpublic java.net.URL getBaseUrl()
public javax.activation.DataSource resolve(java.lang.String resourceLocation)
throws java.io.IOException
DataSource.resourceLocation - the location of the resourceDataSourcejava.io.IOException - the resource was not foundpublic javax.activation.DataSource resolve(java.lang.String resourceLocation,
boolean isLenient)
throws java.io.IOException
DataSource.resourceLocation - the location of the resourceisLenient - shall we ignore resources not found or complain with an exception?java.io.IOException - resolving the resource failedCopyright © 2010 - 2023 Adobe. All Rights Reserved