KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > impl > filter > PortletFilterConfigImpl


1 package org.exoplatform.services.portletcontainer.impl.filter;
2
3
4 import javax.portlet.PortletContext;
5 import org.exoplatform.services.portletcontainer.filter.PortletFilterConfig;
6 import org.exoplatform.services.portletcontainer.pci.model.InitParam;
7 import java.util.*;
8
9 /**
10  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
11  * Please look at license.txt in info directory for more license detail.
12  **/

13
14 /**
15  * Created by the Exo Development team.
16  * Author : Mestrallet Benjamin
17  * benjmestrallet@users.sourceforge.net
18  * Date: 17 nov. 2003
19  * Time: 21:11:17
20  */

21 public class PortletFilterConfigImpl implements PortletFilterConfig{
22
23     private String JavaDoc filterName;
24     private PortletContext portletContext;
25     private Map initParams;
26
27     public PortletFilterConfigImpl(String JavaDoc filterName, List initParamsList, PortletContext portletContext) {
28         this.filterName = filterName;
29         this.portletContext = portletContext;
30         this.initParams = new HashMap();
31         for (Iterator iterator = initParamsList.iterator(); iterator.hasNext();) {
32             InitParam initParam = (InitParam) iterator.next();
33             initParams.put(initParam.getName(), initParam.getValue());
34         }
35     }
36
37     public String JavaDoc getFilterName() {
38         return filterName;
39     }
40
41     public String JavaDoc getInitParameter(String JavaDoc string) {
42         return (String JavaDoc) initParams.get(string);
43     }
44
45     public Enumeration getInitParameterNames() {
46         return Collections.enumeration(initParams.keySet());
47     }
48
49     public PortletContext getPortletContext() {
50         return portletContext;
51     }
52 }
Popular Tags