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  
22  /***
23   *@author     christoph
24   */
25  public class FileTransferInvitation {
26    String mimeHeader =
27      "MIME-Version: 1.0\n" + "Content-Type: text/x-msmsgsinvite; charset=UTF-8";
28    String applicationHeader =
29      "Application-Name: File Transfer\n"
30        + "Application-GUID: {5D3E02AB-6190-11d3-BBBB-00C04F795683}";
31    String inviteCommand = "Invitation-Command: INVITE";
32    String inviteCodeHeader = "Invitation-Cookie:";
33    String applicationFileHeader = "Application-File:";
34    String applicationFileSize = "Application-FileSize:";
35  
36    /***
37     *  Creates a new instance of FileTransferInvitation
38     */
39    public FileTransferInvitation() {
40    }
41  
42    /***
43     *  Gets the multipartMessage attribute of the FileTransferInvitation object
44     *
45     *@return    The multipartMessage value
46     */
47    public boolean isMultipartMessage() {
48      return true;
49    }
50  
51    /***
52     *  Adds a feature to the Line attribute of the FileTransferInvitation
53     *  object
54     *
55     *@param  line  The feature to be added to the Line attribute
56     *@return       Description of the Return Value
57     */
58    public MsnMessage addLine(String line) {
59      return null;
60    }
61  
62    /***
63     *  Gets the complete attribute of the FileTransferInvitation object
64     *
65     *@return    The complete value
66     */
67    public boolean isComplete() {
68      return true;
69    }
70  }