1 package org.oxerr.spring.security.wechat.web.authentication;
2
3 import java.io.IOException;
4
5 import javax.servlet.ServletException;
6 import javax.servlet.http.HttpServletRequest;
7 import javax.servlet.http.HttpServletResponse;
8
9 public interface WeChatService {
10
11 /**
12 * Redirect to WeChat server to authorize.
13 *
14 * @param request the HTTP request.
15 * @param response the HTTP response.
16 * @throws ServletException indicates servlet exception.
17 * @throws IOException indicates I/O exception.
18 */
19 void redirectToAuthorize(HttpServletRequest request,
20 HttpServletResponse response) throws ServletException, IOException;
21
22 }