/**
* The set of Cookies associated with this Request.
*/
- private ArrayList cookies = new ArrayList();
+ private ArrayList<Cookie> cookies = new ArrayList<Cookie>();
public void addCookie(Cookie cookie) {
cookies.add(cookie);
* values for this header. The values are returned as an Iterator when
* you ask for them.
*/
- private HashMap headers = new HashMap();
+ private HashMap<String,ArrayList<String>> headers =
+ new HashMap<String,ArrayList<String>>();
public void addHeader(String name, String value) {
- ArrayList values = (ArrayList) headers.get(name);
+ ArrayList<String> values = (ArrayList<String>) headers.get(name);
if (values == null) {
- values = new ArrayList();
+ values = new ArrayList<String>();
headers.put(name, values);
}
values.add(value);
/**
* The set of Locales associated with this Request.
*/
- private ArrayList locales = new ArrayList();
+ private ArrayList<Locale> locales = new ArrayList<Locale>();
public void addLocale(Locale locale) {
locales.add(locale);
* entry is keyed by the parameter name, pointing at a String array of
* the corresponding values.
*/
- private HashMap parameters = new HashMap();
+ private HashMap<String,String[]> parameters =
+ new HashMap<String,String[]>();
public void addParameter(String name, String values[]) {
parameters.put(name, values);
* The cache of SingleSignOnEntry instances for authenticated Principals,
* keyed by the cookie value that is used to select them.
*/
- protected Map cache = new HashMap();
+ protected Map<String,SingleSignOnEntry> cache =
+ new HashMap<String,SingleSignOnEntry>();
/**
* The cache of single sign on identifiers, keyed by the Session that is
* associated with them.
*/
- protected Map reverse = new HashMap();
+ protected Map<Session,String> reverse = new HashMap<Session,String>();
/**