| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| DefaultLogoutHandler |
|
| 3.0;3 |
| 1 | package com.ctrip.framework.apollo.portal.auth; | |
| 2 | ||
| 3 | import java.io.IOException; | |
| 4 | ||
| 5 | import javax.servlet.http.HttpServletRequest; | |
| 6 | import javax.servlet.http.HttpServletResponse; | |
| 7 | ||
| 8 | 1 | public class DefaultLogoutHandler implements LogoutHandler{ |
| 9 | ||
| 10 | @Override | |
| 11 | public void logout(HttpServletRequest request, HttpServletResponse response) { | |
| 12 | try { | |
| 13 | 0 | response.sendRedirect("/"); |
| 14 | 0 | } catch (IOException e) { |
| 15 | 0 | throw new RuntimeException(e); |
| 16 | 0 | } |
| 17 | 0 | } |
| 18 | } |