01: /* Copyright 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal.container.om.servlet;
07:
08: import java.io.Serializable;
09: import java.util.ArrayList;
10: import java.util.Iterator;
11: import java.util.List;
12:
13: /**
14: * Data structure to support WebApplicationDefinition for
15: * marshalling and unmarshalling of web.xml.
16: * Not needed by the Pluto container.
17: * @author Ken Weiner, kweiner@unicon.net
18: * @version $Revision: 34757 $
19: */
20: public class WelcomeFileListImpl implements Serializable {
21:
22: private List welcomeFiles = null; // Holds welcomeFile Strings
23:
24: public WelcomeFileListImpl() {
25: welcomeFiles = new ArrayList();
26: }
27:
28: public Iterator iterator() {
29: return welcomeFiles.iterator();
30: }
31:
32: public boolean remove(String welcomeFile) {
33: return welcomeFiles.remove(welcomeFile);
34: }
35:
36: public void add(String welcomeFile) {
37: welcomeFiles.add(welcomeFile);
38: }
39:
40: public int size() {
41: return welcomeFiles.size();
42: }
43:
44: }
|