source: 3thparty/jmessenger/src/nu/fw/jeti/jabber/elements/IQXCaps.java @ 3952

Revision 3952, 1.8 KB checked in by alexandrecorreia, 13 years ago (diff)

Ticket #1710 - Adicao do codigo fonte java do componente jmessenger(jabberit_messenger)

  • Property svn:executable set to *
Line 
1/*
2 *      Jeti, a Java Jabber client, Copyright (C) 2001 E.S. de Boer 
3 *
4 *  This program is free software; you can redistribute it and/or modify
5 *  it under the terms of the GNU General Public License as published by
6 *  the Free Software Foundation; either version 2 of the License, or
7 *  (at your option) any later version.
8 *
9 *  This program is distributed in the hope that it will be useful,
10 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 *      GNU General Public License for more details.
13 *
14 *  You should have received a copy of the GNU General Public License
15 *  along with this program; if not, write to the Free Software
16 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17 *
18 *      For questions, comments etc,
19 *      use the website at http://jeti.jabberstudio.org
20 *  or mail/IM me at jeti@jabber.org
21 * 
22 *  Created on 21-feb-2007
23 */
24
25package nu.fw.jeti.jabber.elements;
26
27import nu.fw.jeti.jabber.Backend;
28
29/**
30  * @author E.S. de Boer
31 */
32
33public class IQXCaps  extends Extension implements IQExtension, XExtension{
34        private String node;
35        private String ver;
36        private String ext;
37
38        public IQXCaps(String node, String ver, String ext) {
39                this.node = node;
40                this.ver = ver;
41                this.ext = ext;
42        }
43
44        public String getExt() {
45                return ext;
46        }
47
48        public String getNode() {
49                return node;
50        }
51
52        public String getVer() {
53                return ver;
54        }
55       
56        public void execute(InfoQuery iq,Backend backend){}
57
58        public void appendToXML(StringBuffer xml)  {
59        xml.append("<c xmlns='http://jabber.org/protocol/caps'");
60                appendAttribute(xml,"node",node);
61                appendAttribute(xml,"ver",ver);
62                appendAttribute(xml,"ext",ext);
63                xml.append("/>");
64    }
65}
66/*
67 * Overrides for emacs
68 * Local variables:
69 * tab-width: 4
70 * End:
71 */
Note: See TracBrowser for help on using the repository browser.