Creating feeds can be useful when the standard feeds library is not sufficient. For example, if you want to connect and retrieve data from an unsupported database.
Using the Eclipse plugin
The Eclipse plugin allows you to create the feed with all required files at once.
The new feed is added to the specified source folder in the Project Explorer panel. Edit the feed files as needed.
Abstract class Feed
public abstract class Feed { /* * API to implement */ /** * Return a human friendly name for this Feed, to be used by the Administration Console */ abstract public String getDisplayName();1 /** * Execute routine. Called when receiving a request without any specific ID. * @param context * @return Return the ResultFeed for the given QueryContext * @throws AccessException */ abstract public ResultFeed execute(QueryContext context)4 throws AccessException; /** * Get routine. Called when receiving a request with a specific ID. Must return one and only one hit. * @param context * @param id * @throws AccessException */ abstract public ResultFeed get(QueryContext context, String id) throws AccessException; /** * Get the list of available metas for the given feed configuration. * @param feedConf * @throws AccessException */ @Override public AvailableMetas getAvailableMetas(Map<String, String[]> feedConf) throws AccessException { AvailableMetas m = new AvailableMetas(); String[] mv = { "metaName", "feedOption1" }; m.addType(new AvailableMetas.Type("all", mv, null)); return m; } /** * Get the list of supported parameters by this Feed. * @return An array of supported Parameters */ abstract protected Parameter[] getSupportedParameters();3