01: /**
02: * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE, version 2.1, dated February 1999.
03: *
04: * This program is free software; you can redistribute it and/or modify
05: * it under the terms of the latest version of the GNU Lesser General
06: * Public License as published by the Free Software Foundation;
07: *
08: * This program is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11: * GNU Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public License
14: * along with this program (LICENSE.txt); if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16: */package org.jamwiki.servlets;
17:
18: import javax.servlet.http.HttpServletRequest;
19: import javax.servlet.http.HttpServletResponse;
20: import org.jamwiki.utils.WikiLogger;
21: import org.springframework.web.servlet.ModelAndView;
22:
23: /**
24: * Used to handle requests or redirects to the login page.
25: */
26: public class LoginServlet extends JAMWikiServlet {
27:
28: /** Logger */
29: private static final WikiLogger logger = WikiLogger
30: .getLogger(LoginServlet.class.getName());
31:
32: /**
33: *
34: */
35: protected ModelAndView handleJAMWikiRequest(
36: HttpServletRequest request, HttpServletResponse response,
37: ModelAndView next, WikiPageInfo pageInfo) throws Exception {
38: return ServletUtil.viewLogin(request, pageInfo, null, null);
39: }
40: }
|