Package org.gatein.wci.security

Examples of org.gatein.wci.security.WCIController


   private static final Log LOG = ExoLogger.getLogger(ErrorLoginServlet.class.getName());

   @Override
   protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
   {
      WCIController wciController = new GateinWCIController(getServletContext());
     
      PortalContainer pContainer = PortalContainer.getInstance();
      ServletContext context = pContainer.getPortalContext();
      // Unregister the token cookie
      unregisterTokenCookie(req);
      // Clear the token cookie
      clearTokenCookie(req, resp);
     
      //nguyenanhkien2a@gmail.com: We set content-type here for using RequestDispatcher.include() method below
      //We can't use RequestDispatcher.forward() if we want to use some response information for output such as clearing cookies, etc
      resp.setContentType("text/html; charset=UTF-8");
     
      // This allows the customer to define another login page without changing the portal
      wciController.showErrorLoginForm(req, resp);
   }
View Full Code Here

TOP

Related Classes of org.gatein.wci.security.WCIController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.