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 UserMessage extends MimeMessage {
27    private String message;
28    private String account;
29    private String nick;
30  
31    /***
32     *  Getter for property message.
33     *
34     *@return    Value of property message.
35     */
36    public java.lang.String getMessage() {
37      return message;
38    }
39  
40    /***
41     *  Getter for property account.
42     *
43     *@return    Value of property account.
44     */
45    public java.lang.String getAccount() {
46      return account;
47    }
48  
49    /***
50     *  Setter for property account.
51     *
52     *@param  account  New value of property account.
53     */
54    public void setAccount(java.lang.String account) {
55      this.account = account;
56    }
57  
58    /***
59     *  Getter for property nick.
60     *
61     *@return    Value of property nick.
62     */
63    public java.lang.String getNick() {
64      return nick;
65    }
66  
67    /***
68     *  Setter for property nick.
69     *
70     *@param  nick  New value of property nick.
71     */
72    public void setNick(java.lang.String nick) {
73      this.nick = nick;
74    }
75  
76    /***
77     *  Description of the Method
78     *
79     *@param  account
80     *      Description of the Parameter
81     *@param  nick
82     *      Description of the Parameter
83     *@param  lineList
84     *      Description of the Parameter
85     *@exception  net.sf.dexterim.msn.engine.MessageFormatException
86     *      Description of the Exception
87     */
88    public void processMessage(
89      String account,
90      String nick,
91      java.util.List lineList)
92      throws net.sf.dexterim.msn.message.MessageFormatException {
93      setAccount(account);
94      setNick(nick);
95  
96      message = new String();
97  
98      for (int i = 2; i < lineList.size(); i++) {
99        this.message
100         += net.sf.dexterim.msn.util.SpecialCharacters.getInstance().decode(
101           (String)lineList.get(i));
102     }
103   }
104 
105   /* (non-Javadoc)
106    * @see net.sf.dexterim.msn.message.MsnMessage#process(net.sf.dexterim.msn.MsnConnection)
107    */
108   public void process(MsnConnection connection) {
109     // TODO Auto-generated method stub
110     
111   }
112 }