| java.lang.Object org.jfree.report.filter.URLFilter
URLFilter | public class URLFilter implements DataFilter(Code) | | The URLFilter forms URLs from Strings ,Files and URLs. If an URL is relative, the
missing contents can be obtained by a default url, called the baseURL.
author: Thomas Morgner |
Constructor Summary | |
public | URLFilter() DefaultConstructor. |
URLFilter | public URLFilter()(Code) | | DefaultConstructor.
|
getBaseURL | public URL getBaseURL()(Code) | | Gets the base url used to make relative URLs absolute.
the base url used to complete relative urls. |
getDataSource | public DataSource getDataSource()(Code) | | Returns the data source for the filter.
The data source. |
getValue | public Object getValue(ExpressionRuntime runtime)(Code) | | Tries to form a url from the object returned from the datasource. This function will
return null if the datasource is null or returned null when getValue was called.
Null is also returned if the datasources value is not an url, a String or a file. If
the creation of the url failed with an MalformedURLException or the datasource
returned a file which is not readable, also null is returned.
Parameters: runtime - the expression runtime that is used to evaluate formulas and expressions when computing the value ofthis filter. created url or null if something went wrong on url creation. |
setBaseURL | public void setBaseURL(URL baseURL)(Code) | | Defines the base url used to complete relative urls.
Parameters: baseURL - the base URL. |
setDataSource | public void setDataSource(DataSource ds)(Code) | | Sets the data source.
Parameters: ds - The data source. |
|
|