All Packages Class Hierarchy This Package Previous Next Index
Class jclass.contrib.JCRetrieve
java.lang.Object
|
+----jclass.contrib.JCRetrieve
- public abstract class JCRetrieve
- extends Object
-
_cache
- This local cache is used to minimize the number of times the
cgi-bin script is accessed.
-
JCRetrieve(String, String)
- The constructor.
-
getData(Object)
- Retrieves the value for "key".
-
parseReturnData(Vector)
- parseReturnData() uses the array of text lines to
fill up the cache.
-
setURL(String, String)
- Changes the host, port number and cgi-bin script according to
the data provided.
_cache
protected JCCache _cache
- This local cache is used to minimize the number of times the
cgi-bin script is accessed.
JCRetrieve
public JCRetrieve(String url,
String script)
- The constructor. It must specify a URL to the
cgi-bin script and the name of the script to be run.
setURL
public boolean setURL(String url,
String script)
- Changes the host, port number and cgi-bin script according to
the data provided.
parseReturnData
public abstract void parseReturnData(Vector input)
- parseReturnData() uses the array of text lines to
fill up the cache. The user is expected to override
this to parse the data based on their cgi-bin script.
Each element in the Vector input represents a (key, value)
pair returned by the cgi-bin script.
getData
public Object getData(Object key)
- Retrieves the value for "key". It checks the local cache first,
then goes out to the cgi-bin. It returns null if the data is
not found.
All Packages Class Hierarchy This Package Previous Next Index