net.sf.dexterim.msn.message
Class MimeMessage

java.lang.Object
  extended bynet.sf.dexterim.msn.message.MimeMessage
All Implemented Interfaces:
MsnMessage
Direct Known Subclasses:
HotmailNotificationMessage, HotmailProfileMessage, MimeMessageFactory, UserMessage, UserTypingMessage

public abstract class MimeMessage
extends java.lang.Object
implements MsnMessage

Author:
Christoph Walcher

Constructor Summary
MimeMessage()
          Constructor for the MimeMessage object
 
Method Summary
 MsnMessage addCharBlock(char[] charBlock)
          Adds a feature to the CharBlock attribute of the MimeMessage object
 MsnMessage addLine(java.lang.String line)
          Adds a Received Line to a Message.
 int getRequiredByteInput()
          Gets the requiredByteInput attribute of the MimeMessage object
 boolean isCompleted()
          Return true if MsnMessage does not require any further input.
 boolean isMultipartMessage()
          Gets the multipartMessage attribute of the MimeMessage object
abstract  void processMessage(java.lang.String account, java.lang.String nick, java.util.List lineList)
          Description of the Method
 void setRequiredByteInput(int requiredByteInput)
          Setter for property requiredByteInput.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.dexterim.msn.message.MsnMessage
process
 

Constructor Detail

MimeMessage

public MimeMessage()
Constructor for the MimeMessage object

Method Detail

isMultipartMessage

public boolean isMultipartMessage()
Gets the multipartMessage attribute of the MimeMessage object

Specified by:
isMultipartMessage in interface MsnMessage
Returns:
The multipartMessage value

isCompleted

public boolean isCompleted()
Return true if MsnMessage does not require any further input. Is Completed will be called after the first addLine was called!

Specified by:
isCompleted in interface MsnMessage
Returns:
The completed value

getRequiredByteInput

public int getRequiredByteInput()
Gets the requiredByteInput attribute of the MimeMessage object

Specified by:
getRequiredByteInput in interface MsnMessage
Returns:
The requiredByteInput value

processMessage

public abstract void processMessage(java.lang.String account,
                                    java.lang.String nick,
                                    java.util.List lineList)
                             throws MessageFormatException
Description of the Method

Parameters:
account - Description of the Parameter
nick - Description of the Parameter
lineList - Description of the Parameter
Throws:
net.sf.dexterim.msn.engine.MessageFormatException - Description of the Exception
MessageFormatException

setRequiredByteInput

public void setRequiredByteInput(int requiredByteInput)
Setter for property requiredByteInput.

Parameters:
requiredByteInput - New value of property requiredByteInput.

addLine

public MsnMessage addLine(java.lang.String line)
                   throws MessageFormatException
Adds a Received Line to a Message. Return an instance of MsnMessage

Specified by:
addLine in interface MsnMessage
Parameters:
line - The feature to be added to the Line attribute
Returns:
Description of the Return Value
Throws:
net.sf.dexterim.msn.engine.MessageFormatException - Description of the Exception
MessageFormatException

addCharBlock

public MsnMessage addCharBlock(char[] charBlock)
                        throws MessageFormatException
Adds a feature to the CharBlock attribute of the MimeMessage object

Specified by:
addCharBlock in interface MsnMessage
Parameters:
charBlock - The feature to be added to the CharBlock attribute
Returns:
Description of the Return Value
Throws:
net.sf.dexterim.msn.engine.MessageFormatException - Description of the Exception
MessageFormatException


Copyright © 2003-2004 Dexter IM Team. All Rights Reserved.