public class Kb extends Object
There are 2 types of Kb: 1. key = name. result = value. This represents kb applicable over the entire host. 2. key = url (path without query) and name. result = value. This represents kb applicable for specific path only.
Constructor and Description |
---|
Kb() |
Modifier and Type | Method and Description |
---|---|
void |
add(String key,
Object value)
Add the key value pair to KB.
|
void |
add(org.apache.commons.httpclient.URI uri,
String key,
Object value) |
Object |
get(String key) |
Object |
get(org.apache.commons.httpclient.URI uri,
String key) |
boolean |
getBoolean(String key) |
boolean |
getBoolean(org.apache.commons.httpclient.URI uri,
String key) |
Vector<Object> |
getList(String key)
Get a list of the values matching the key.
|
Vector<Object> |
getList(org.apache.commons.httpclient.URI uri,
String key) |
String |
getString(String key)
Get the first item in KB matching the key as a String.
|
String |
getString(org.apache.commons.httpclient.URI uri,
String key) |
public Vector<Object> getList(String key)
key
- the key for the knowledge base list entrypublic void add(String key, Object value)
key
- the key for the knowledge base entryvalue
- the value of the new entrypublic String getString(String key)
key
- the key for the knowledge base entrynull
if not a String
or does not existpublic boolean getBoolean(String key)
public boolean getBoolean(org.apache.commons.httpclient.URI uri, String key)