public class LoginService
extends java.lang.Object
构造器和说明 |
---|
LoginService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
从 Servlet Request 和 Servlet Response 创建登录服务
|
限定符和类型 | 方法和说明 |
---|---|
UserInfo |
check()
检查当前请求的会话状态
|
UserInfo |
login()
处理登录请求
|
public LoginService(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
request
- Servlet Requestresponse
- Servlet Responsepublic UserInfo login() throws java.lang.IllegalArgumentException, LoginServiceException, ConfigurationException
java.lang.IllegalArgumentException
LoginServiceException
ConfigurationException
public UserInfo check() throws LoginServiceException, ConfigurationException
LoginServiceException
ConfigurationException