org.jboss.test.web.servlets.ssl
Class SecureServlet

java.lang.Object
  extended byHttpServlet
      extended byorg.jboss.test.web.servlets.ssl.SecureServlet

public class SecureServlet
extends HttpServlet

A servlet that is secured by the web.xml descriptor. When accessed it simply prints the getUserPrincipal that accessed the url.

See Also:
Serialized Form

Constructor Summary
SecureServlet()
           
 
Method Summary
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
           
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
           
 void init(ServletConfig config)
           
protected  void processRequest(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureServlet

public SecureServlet()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Throws:
ServletException

processRequest

protected void processRequest(HttpServletRequest request,
                              HttpServletResponse response)
                       throws ServletException,
                              java.io.IOException
Throws:
ServletException
java.io.IOException

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     java.io.IOException
Throws:
ServletException
java.io.IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      java.io.IOException
Throws:
ServletException
java.io.IOException