-
Notifications
You must be signed in to change notification settings - Fork 24
/
UserService.java
43 lines (31 loc) · 1003 Bytes
/
UserService.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* @(#)UserService.java $version 2011. 11. 16.
*
* Copyright 2007 NHN Corp. All rights Reserved.
* NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package study.javacon.findbugs;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.jcip.annotations.ThreadSafe;
/**
* @author benelog
*/
@ThreadSafe
public class UserService extends HttpServlet {
private static final long serialVersionUID = 1L;
private LoginInfo loginInfo = new LoginInfo();
public void setLoginInfo(LoginInfo loginInfo) {
this.loginInfo = loginInfo;
}
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String id = req.getParameter("id");
this.loginInfo.setId(id);
System.out.println(loginInfo.getPassword());
Memo memo = new Memo();
memo.setContent("");
}
}