1
1
package com .Polodz .controller ;
2
2
3
3
import java .util .Arrays ;
4
- import java .util .Iterator ;
5
4
import java .util .List ;
6
5
7
- import javax .annotation .Resource ;
8
-
9
6
import com .Polodz .service .WebService ;
10
7
import org .apache .log4j .Logger ;
11
8
import org .springframework .beans .factory .annotation .Autowired ;
12
- import org .springframework .beans .factory .annotation .Qualifier ;
13
9
import org .springframework .context .annotation .Bean ;
14
- import org .springframework .context .annotation .ComponentScan ;
15
10
import org .springframework .context .annotation .Configuration ;
16
- import org .springframework .context .annotation .Primary ;
17
- import org .springframework .stereotype .Service ;
18
- import org .springframework .ui .Model ;
19
- import org .springframework .web .bind .annotation .RequestMapping ;
20
- import org .springframework .web .bind .annotation .RequestMethod ;
21
- import org .springframework .web .servlet .ModelAndView ;
22
11
23
12
import com .Polodz .View .MainWindow ;
24
- import com .Polodz .model .MembersFactory ;
25
- import com .Polodz .model .StringWebData ;
26
13
import com .Polodz .model .Config ;
27
14
import com .Polodz .model .IItem ;
28
15
import com .Polodz .model .IMember ;
29
16
import com .Polodz .model .MembersDAO ;
30
- import com .Polodz .service .TelnetConnector ;
31
17
32
18
@ Configuration
33
19
@ org .springframework .stereotype .Controller
@@ -44,7 +30,7 @@ public void test() {
44
30
private MembersDAO membersDAO ;
45
31
46
32
@ Autowired
47
- private IController telentController ;
33
+ private IController telnetController ;
48
34
49
35
@ Autowired
50
36
private MainWindow mainView ;
@@ -62,12 +48,12 @@ public void setMembersDAO(MembersDAO membersDAO) {
62
48
this .membersDAO = membersDAO ;
63
49
}
64
50
65
- public IController getTelentController () {
66
- return telentController ;
51
+ public IController getTelnetController () {
52
+ return telnetController ;
67
53
}
68
54
69
- public void setTelentController (IController telentController ) {
70
- this .telentController = telentController ;
55
+ public void setTelnetController (IController telnetController ) {
56
+ this .telnetController = telnetController ;
71
57
//log.info(getMtcResponse("list"));
72
58
}
73
59
@@ -112,11 +98,11 @@ public void setRentWebItems(String input) {
112
98
}
113
99
114
100
public String getServerResponse (String input ) {
115
- return telentController .execute (input );
101
+ return telnetController .execute (input );
116
102
}
117
103
118
104
public String getLastServerResponse () {
119
- return ((Controller ) telentController ).getLastListing ();
105
+ return ((Controller ) telnetController ).getLastListing ();
120
106
}
121
107
122
108
public List <IMember > listAll () {
0 commit comments