1 40 package org.dspace.app.webui.servlet; 41 42 import java.io.IOException ; 43 import java.sql.SQLException ; 44 45 import javax.servlet.ServletException ; 46 import javax.servlet.http.HttpServletRequest ; 47 import javax.servlet.http.HttpServletResponse ; 48 49 import org.apache.log4j.Logger; 50 import org.dspace.app.webui.util.Authenticate; 51 import org.dspace.app.webui.util.JSPManager; 52 import org.dspace.authorize.AuthorizeException; 53 import org.dspace.core.Context; 54 import org.dspace.core.LogManager; 55 56 62 public class LogoutServlet extends DSpaceServlet 63 { 64 65 private static Logger log = Logger.getLogger(LogoutServlet.class); 66 67 protected void doDSGet(Context context, HttpServletRequest request, 68 HttpServletResponse response) throws ServletException , IOException , 69 SQLException , AuthorizeException 70 { 71 log.info(LogManager.getHeader(context, "logout", "")); 72 73 Authenticate.loggedOut(context, request); 74 75 JSPManager.showJSP(request, response, "/login/logged-out.jsp"); 77 } 78 } 79 | Popular Tags |