Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.sample.servlet » [javadoc | source]
org.apache.cactus.sample.servlet
public class: SampleServletConfig [javadoc | source]
java.lang.Object
   javax.servlet.GenericServlet
      javax.servlet.http.HttpServlet
         org.apache.cactus.sample.servlet.SampleServletConfig

All Implemented Interfaces:
    Serializable, Servlet, ServletConfig

Sample servlet to show how to unit test a servlet that makes calls to getServletConfig(), getServletContext(), log(), ... (i.e. methods inherited from GenericServlet).
Method from org.apache.cactus.sample.servlet.SampleServletConfig Summary:
getConfigData
Methods from javax.servlet.http.HttpServlet:
service
Methods from javax.servlet.GenericServlet:
destroy,   getInitParameter,   getInitParameterNames,   getServletConfig,   getServletContext,   getServletInfo,   getServletName,   init,   init,   log,   log,   service
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.sample.servlet.SampleServletConfig Detail:
 public String getConfigData() 
    Simulate a method that calls getServletConfig().