| java.lang.Object org.openlaszlo.data.DataSource
All known Subclasses: org.openlaszlo.data.FileDataSource, org.openlaszlo.data.HTTPDataSource, org.openlaszlo.data.XMLRPCDataSource, org.openlaszlo.data.JavaDataSource, org.openlaszlo.data.swf.SOAPDataSource, org.openlaszlo.data.json.SOAPDataSource,
DataSource | abstract public class DataSource (Code) | | Base class for server side LZX data/media sources.
|
Method Summary | |
final public void | get(String app, HttpServletRequest req, HttpServletResponse res) Determine the datasource from the incoming request,
get the data, and write it out
to the given response. | final public void | getAsSWF(String app, HttpServletRequest req, HttpServletResponse res, Converter converter) Determine the datasource from the incoming request,
get the data, convert it to SWF, and write it out
to the given response. | abstract public Data | getData(String app, HttpServletRequest req, HttpServletResponse res, long lastModifiedTime) Get the data for this request.
the data for this request. Parameters: app - absolute pathnane to app file. Parameters: req - request in progress. Parameters: res - response object. Parameters: lastModifiedTime - this is the timestamp on the currently cacheditem; this time can be used as the datasource sees fit (or ignored) inconstructing the results. | final public static HashMap | getQueryString(String url) Utility function to get a hash map of query parameters from
an url string.
Parameters: url - string containing an URL to parse query parameters. | final public static String | getURL(HttpServletRequest req, String surl) Get the actual URL for this request.
Parameters: req - servlet request object. Parameters: url - the url string received from the client. | public static String | getURL(HttpServletRequest req) Get the URL query paramter for this request.
Parameters: req - servlet request object to retrieve URL parameter. | final public static boolean | isClientCacheable(HttpServletRequest req) | abstract public String | name() Get unique name of this data source. |
getData | abstract public Data getData(String app, HttpServletRequest req, HttpServletResponse res, long lastModifiedTime) throws InterruptedIOException, IOException, DataSourceException(Code) | | Get the data for this request.
the data for this request. Parameters: app - absolute pathnane to app file. Parameters: req - request in progress. Parameters: res - response object. Parameters: lastModifiedTime - this is the timestamp on the currently cacheditem; this time can be used as the datasource sees fit (or ignored) inconstructing the results. If the value is -1, assume there is nocurrently cached item. throws: DataSourceException - if there was a problem with the data source. throws: IOException - if there was a problem retrieving the data. throws: InterrupedIOException - if there was a timeout retrieving the data. |
getQueryString | final public static HashMap getQueryString(String url)(Code) | | Utility function to get a hash map of query parameters from
an url string.
Parameters: url - string containing an URL to parse query parameters. hash map of query parameters, or an empty hash map if no queryparameters exist. |
getURL | final public static String getURL(HttpServletRequest req, String surl) throws MalformedURLException(Code) | | Get the actual URL for this request.
Parameters: req - servlet request object. Parameters: url - the url string received from the client. Can contain"@WEBAPP@" string. the 'URL' for the request. |
isClientCacheable | final public static boolean isClientCacheable(HttpServletRequest req)(Code) | | Return true if the request is marked cacheable on the client
|
name | abstract public String name()(Code) | | Get unique name of this data source.
unique name of this data source. |
|
|