1 15 package org.apache.tapestry.web; 16 17 import java.util.List ; 18 19 import javax.servlet.http.HttpServlet ; 20 21 import org.apache.tapestry.describe.DescriptionReceiver; 22 23 30 public class HttpServletWebActivator implements WebActivator 31 { 32 private HttpServlet _httpServlet; 33 34 public HttpServletWebActivator(HttpServlet servlet) 35 { 36 _httpServlet = servlet; 37 } 38 39 public String getActivatorName() 40 { 41 return _httpServlet.getServletName(); 42 } 43 44 public List getInitParameterNames() 45 { 46 return WebUtils.toSortedList(_httpServlet.getInitParameterNames()); 47 } 48 49 public String getInitParameterValue(String name) 50 { 51 return _httpServlet.getInitParameter(name); 52 } 53 54 public void describeTo(DescriptionReceiver receiver) 55 { 56 receiver.describeAlternate(_httpServlet); 57 } 58 59 } | Popular Tags |