org.jaffa.security
Class CheckPolicy

java.lang.Object
  extended byjavax.servlet.GenericServlet
      extended byjavax.servlet.http.HttpServlet
          extended byorg.jaffa.security.CheckPolicy
All Implemented Interfaces:
Serializable, Servlet, ServletConfig

public class CheckPolicy
extends HttpServlet

This servlet can be used on start-up to make ssure there are no rogue entries in the components and roles files.

Version:
1.0
Author:
paule
See Also:
Serialized Form

Constructor Summary
CheckPolicy()
           
 
Method Summary
 void destroy()
          Destroys the servlet.
protected  void doGet(HttpServletRequest request, HttpServletResponse response)
          Handles the HTTP GET method.
protected  void doPost(HttpServletRequest request, HttpServletResponse response)
          Handles the HTTP POST method.
 String getServletInfo()
          Returns a short description of the servlet.
 void init(ServletConfig config)
          Initializes the servlet.
static void main(String[] args)
           
protected  void processRequest(HttpServletRequest request, HttpServletResponse response)
          Processes requests for both HTTP GET and POST methods.
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckPolicy

public CheckPolicy()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Initializes the servlet.

Throws:
ServletException

destroy

public void destroy()
Destroys the servlet.


processRequest

protected void processRequest(HttpServletRequest request,
                              HttpServletResponse response)
                       throws ServletException,
                              IOException
Processes requests for both HTTP GET and POST methods.

Parameters:
request - servlet request
response - servlet response
Throws:
ServletException
IOException

doGet

protected void doGet(HttpServletRequest request,
                     HttpServletResponse response)
              throws ServletException,
                     IOException
Handles the HTTP GET method.

Parameters:
request - servlet request
response - servlet response
Throws:
ServletException
IOException

doPost

protected void doPost(HttpServletRequest request,
                      HttpServletResponse response)
               throws ServletException,
                      IOException
Handles the HTTP POST method.

Parameters:
request - servlet request
response - servlet response
Throws:
ServletException
IOException

getServletInfo

public String getServletInfo()
Returns a short description of the servlet.


main

public static void main(String[] args)


Copyright © 2002-2004 JAFFA Project.