prometheus
Class LoginCtrl

java.lang.Object
  |
  +--HttpServlet
        |
        +--prometheus.LoginCtrl

public class LoginCtrl
extends HttpServlet

Login controller.

alexis.grandemange@pagebox.net

Copyright (c) 2003-2004 Alexis Grandemange

This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU Lesser General Public License
 as published by the Free Software Foundation; version 2.1 of the
 License.
 This library is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 GNU Lesser General Public License for more details.
 A copy of the GNU Lesser General Public License lesser.txt should be
 included in the distribution.

Version:
0, 0, 1
Author:
Alexis Grandemange
See Also:
Serialized Form

Field Summary
(package private)  ServletContext ctx
          Servlet context unique in the Web application
(package private)  java.lang.String workDir
          Prometheus directory
 
Constructor Summary
LoginCtrl()
           
 
Method Summary
 void destroy()
          Called by the servlet container to indicate to a servlet that the servlet is being taken out of service.
 void doGet(HttpServletRequest request, HttpServletResponse response)
          GET request handling.
 void doPost(HttpServletRequest request, HttpServletResponse response)
          POST request handling.
 void init(ServletConfig config)
          Invoked by Servlet container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

workDir

java.lang.String workDir
Prometheus directory


ctx

ServletContext ctx
Servlet context unique in the Web application

Constructor Detail

LoginCtrl

public LoginCtrl()
Method Detail

init

public void init(ServletConfig config)
          throws ServletException
Invoked by Servlet container.

Parameters:
config - servlet configuration
ServletException

doGet

public void doGet(HttpServletRequest request,
                  HttpServletResponse response)
           throws ServletException,
                  java.io.IOException
GET request handling.

Parameters:
request - HttpServletRequest.
response - HttpServletResponse.
ServletException
java.io.IOException

doPost

public void doPost(HttpServletRequest request,
                   HttpServletResponse response)
            throws ServletException,
                   java.io.IOException
POST request handling.

Parameters:
request - HttpServletRequest.
response - HttpServletResponse.
ServletException
java.io.IOException

destroy

public void destroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. Calls PrometheusCallback to remove the application from the ring.