com.cinecolombia.cinecolombia.login.web
Class HomeServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--com.cinecolombia.cinecolombia.login.web.HomeServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class HomeServlet
extends javax.servlet.http.HttpServlet

Servlet acting as a controller (outside MVC) in order to get the profile of the user after successfull login. Also invalidates the web session in logout.

Author:
CincoSOFT
See Also:
Serialized Form
Created:
Junio 2003

Field Summary
private  Debug debug
          The ubiquitous debugging object.
private  Security ejbSecurity
          The Security ejb that provides the services for this servlet.
private  SecurityHome homeSecurity
          Home of Security ejb.
 
Fields inherited from class javax.servlet.http.HttpServlet
 
Fields inherited from class javax.servlet.GenericServlet
 
Constructor Summary
HomeServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          action LOGOUT: invalidates web session action GET_USER_PROFILE in login: Gets user profile through an ejb service and set web session variables
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          doPost has the same effect than doGet
 void init()
          init of servlet: obtains home ejb references
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

homeSecurity

private SecurityHome homeSecurity
Home of Security ejb.


ejbSecurity

private Security ejbSecurity
The Security ejb that provides the services for this servlet.


debug

private Debug debug
The ubiquitous debugging object.

Constructor Detail

HomeServlet

public HomeServlet()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
init of servlet: obtains home ejb references

Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException,
                  java.io.IOException
action LOGOUT: invalidates web session action GET_USER_PROFILE in login: Gets user profile through an ejb service and set web session variables

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - HTTP request
response - HTTP response
Throws:
javax.servlet.ServletException - Description of the Exception
java.io.IOException - Description of the Exception

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws javax.servlet.ServletException,
                   java.io.IOException
doPost has the same effect than doGet

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request -
response -
Throws:
javax.servlet.ServletException
java.io.IOException