|
public void onOpen(Session session, @PathParam(value="username") String username) {
this.session = session;
User user = new User();
UserServiceImpl impl=new UserServiceImpl();
user.setUsername(username);
this.user = impl.queryUserWithUserName(username);
user.setPassword(null);
connectedUsers.add(this);
sendNotifyMessage();
System.out.println(user.getUsername() + "上线!");
} public void onOpen(Session session, @PathParam(value="username") String username) {
this.session = session;
User user = new User();
UserServiceImpl impl=new UserServiceImpl();
user.setUsername(username);
this.user = impl.queryUserWithUserName(username);
user.setPassword(null);
connectedUsers.add(this);
sendNotifyMessage();
System.out.println(user.getUsername() + "上线!");
} public void onOpen(Session session, @PathParam(value="username") String username) {
this.session = session;
User user = new User();
UserServiceImpl impl=new UserServiceImpl();
user.setUsername(username);
this.user = impl.queryUserWithUserName(username);
user.setPassword(null);
connectedUsers.add(this);
sendNotifyMessage();
System.out.println(user.getUsername() + "上线!");
} |
|