View Javadoc
1   //////////////////////////////////////////////////////////////////////////////
2   // dexterIM - Instant Messaging Framework
3   // Copyright (C) 2003  Christoph Walcher
4   //
5   // This program is free software; you can redistribute it and/or modify
6   // it under the terms of the GNU General Public License as published by
7   // the Free Software Foundation; either version 2 of the License, or
8   // (at your option) any later version.
9   //
10  // This program is distributed in the hope that it will be useful,
11  // but WITHOUT ANY WARRANTY; without even the implied warranty of
12  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  // GNU General Public License for more details.
14  //
15  // You should have received a copy of the GNU General Public License
16  // along with this program; if not, write to the Free Software
17  // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  //////////////////////////////////////////////////////////////////////////////
19  package net.sf.dexterim.msn.message;
20  
21  import net.sf.dexterim.msn.MsnConnection;
22  
23  /***
24   *@author     christoph
25   */
26  public class UserTypingMessage extends MimeMessage {
27    private String account;
28    private String nick;
29  
30    /***
31     *  Creates a new instance of UserMessage
32     */
33    public UserTypingMessage() {
34    }
35  
36    /***
37     *  Gets the messageCommand attribute of the UserTypingMessage object
38     *
39     *@return    The messageCommand value
40     */
41    public String getMessageCommand() {
42      return "";
43    }
44  
45    /***
46     *  Getter for property account.
47     *
48     *@return    Value of property account.
49     */
50    public java.lang.String getAccount() {
51      return account;
52    }
53  
54    /***
55     *  Setter for property account.
56     *
57     *@param  account  New value of property account.
58     */
59    public void setAccount(java.lang.String account) {
60      this.account = account;
61    }
62  
63    /***
64     *  Getter for property nick.
65     *
66     *@return    Value of property nick.
67     */
68    public java.lang.String getNick() {
69      return nick;
70    }
71  
72    /***
73     *  Setter for property nick.
74     *
75     *@param  nick  New value of property nick.
76     */
77    public void setNick(java.lang.String nick) {
78      this.nick = nick;
79    }
80  
81    /***
82     *  Description of the Method
83     *
84     *@param  account
85     *      Description of the Parameter
86     *@param  nick
87     *      Description of the Parameter
88     *@param  lineList
89     *      Description of the Parameter
90     *@exception  net.sf.dexterim.msn.engine.MessageFormatException
91     *      Description of the Exception
92     */
93    public void processMessage(
94      String account,
95      String nick,
96      java.util.List lineList)
97      throws net.sf.dexterim.msn.message.MessageFormatException {
98      setAccount(account);
99  
100     TokenizedLine tokenLine = new TokenizedLine((String)lineList.get(0));
101 
102     setNick(
103       net.sf.dexterim.msn.util.SpecialCharacters.getInstance().decode(
104         tokenLine.getToken(1),
105         true));
106   }
107 
108   /* (non-Javadoc)
109    * @see net.sf.dexterim.msn.message.MsnMessage#process(net.sf.dexterim.msn.MsnConnection)
110    */
111   public void process(MsnConnection connection) {
112     // TODO Auto-generated method stub
113     
114   }
115 }