KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > jabber > JabberServiceMBean


1
2 package hero.jabber;
3
4 /*
5 *
6 * JabberServiceMBean.java -
7 * Copyright (C) 2003 Ecoo Team
8 * valdes@loria.fr
9 *
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 */

25
26 public interface JabberServiceMBean {
27     public void setUser(String JavaDoc user);
28     public void setPassword(String JavaDoc password);
29     public void setServer(String JavaDoc server);
30     public void setPort(int port);
31     public void start();
32     public boolean sendMessage(String JavaDoc JID, String JavaDoc resource, String JavaDoc subject, String JavaDoc messageBody);
33     public boolean registerUser(String JavaDoc login, String JavaDoc password, String JavaDoc email, String JavaDoc name);
34     public boolean addToRoster(String JavaDoc login, String JavaDoc password, String JavaDoc contactJID,String JavaDoc contactName, String JavaDoc contactGroup );
35     public void stop();
36 }
37
Popular Tags