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 13 14 21 public class PortletFilterConfigImpl implements PortletFilterConfig{ 22 23 private String filterName; 24 private PortletContext portletContext; 25 private Map initParams; 26 27 public PortletFilterConfigImpl(String 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 getFilterName() { 38 return filterName; 39 } 40 41 public String getInitParameter(String string) { 42 return (String ) 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 |