comparison rep/ConnectionEvent.java @ 178:a097b1d619a1

*** empty log message ***
author pin
date Thu, 28 Aug 2008 22:04:48 +0900
parents 02fa9a68d9a2
children
comparison
equal deleted inserted replaced
177:723187e39311 178:a097b1d619a1
1 package rep; 1 package rep;
2 2
3 public class ConnectionEvent { 3 public class ConnectionEvent implements SessionManagerEvent{
4 4
5 private String host; 5 private String host;
6 private SessionManager manager;
6 7
7 public ConnectionEvent(String host) { 8 public ConnectionEvent(SessionManager manager, String host) {
8 // TODO Auto-generated constructor stub 9 this.manager = manager;
9 this.host = host; 10 this.host = host;
10 } 11 }
11 12
12 public String getHost() { 13 public String getHost() {
13 // TODO Auto-generated method stub
14 return host; 14 return host;
15 } 15 }
16 16
17 public void exec() {
18 manager.connectSession(host);
19 }
20
17 } 21 }