net.sf.dexterim.msn.message
Class MimeMessageFactory

java.lang.Object
  extended bynet.sf.dexterim.msn.message.MimeMessage
      extended bynet.sf.dexterim.msn.message.MimeMessageFactory
All Implemented Interfaces:
MsnMessage

public class MimeMessageFactory
extends MimeMessage

Author:
Christoph Walcher

Field Summary
static java.lang.String MSN_MAIL_NOTIFICATION
          Description of the Field
static java.lang.String MSN_PROFILE
          Description of the Field
static java.lang.String USER_MESSAGE
          Description of the Field
static java.lang.String USER_TYPING
          Description of the Field
 
Constructor Summary
MimeMessageFactory()
          Creates a new instance of MimeMessage
 
Method Summary
 MsnMessage addCharBlock(char[] charBlock)
          Adds a feature to the CharBlock attribute of the MimeMessageFactory object
 MsnMessage addLine(java.lang.String line)
          Adds a Received Line to a Message.
 java.lang.String getCharacterSet()
          Getter for property characterSet.
 java.lang.String getMessageCommand()
          Gets the messageCommand attribute of the MimeMessageFactory object
 java.lang.String getMimeType()
          Getter for property mimeType.
 java.lang.String getMimeVersion()
          Getter for property mimeVersion.
protected  java.util.List inspectBody(java.lang.String body)
          Description of the Method
 boolean isCompleted()
          Return true if MsnMessage does not require any further input.
 boolean isMultipartMessage()
          Gets the multipartMessage attribute of the MimeMessageFactory object
 void process(MsnConnection connection)
          Double Dispatching Messages
 void processMessage(java.lang.String account, java.lang.String nick, java.util.List lineList)
          Description of the Method
 
Methods inherited from class net.sf.dexterim.msn.message.MimeMessage
getRequiredByteInput, setRequiredByteInput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSN_PROFILE

public static final java.lang.String MSN_PROFILE
Description of the Field

See Also:
Constant Field Values

MSN_MAIL_NOTIFICATION

public static final java.lang.String MSN_MAIL_NOTIFICATION
Description of the Field

See Also:
Constant Field Values

USER_TYPING

public static final java.lang.String USER_TYPING
Description of the Field

See Also:
Constant Field Values

USER_MESSAGE

public static final java.lang.String USER_MESSAGE
Description of the Field

See Also:
Constant Field Values
Constructor Detail

MimeMessageFactory

public MimeMessageFactory()
Creates a new instance of MimeMessage

Method Detail

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
Overrides:
addLine in class MimeMessage
Parameters:
line - The String line to be added to the Message
Returns:
Description of the Return Value
Throws:
MessageFormatException - Description of the Exception

isMultipartMessage

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

Specified by:
isMultipartMessage in interface MsnMessage
Overrides:
isMultipartMessage in class MimeMessage
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
Overrides:
isCompleted in class MimeMessage
Returns:
The completed value

getMimeType

public java.lang.String getMimeType()
Getter for property mimeType.

Returns:
Value of property mimeType.

getMimeVersion

public java.lang.String getMimeVersion()
Getter for property mimeVersion.

Returns:
Value of property mimeVersion.

getCharacterSet

public java.lang.String getCharacterSet()
Getter for property characterSet.

Returns:
Value of property characterSet.

getMessageCommand

public java.lang.String getMessageCommand()
Gets the messageCommand attribute of the MimeMessageFactory object

Returns:
The messageCommand value

addCharBlock

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

Specified by:
addCharBlock in interface MsnMessage
Overrides:
addCharBlock in class MimeMessage
Parameters:
charBlock - The feature to be added to the CharBlock attribute
Returns:
Description of the Return Value
Throws:
MessageFormatException - Description of the Exception

inspectBody

protected java.util.List inspectBody(java.lang.String body)
                              throws MessageFormatException
Description of the Method

Parameters:
body - Description of the Parameter
Returns:
Description of the Return Value
Throws:
MessageFormatException - Description of the Exception

processMessage

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

Specified by:
processMessage in class MimeMessage
Parameters:
account - Description of the Parameter
nick - Description of the Parameter
lineList - Description of the Parameter
Throws:
MessageFormatException - Description of the Exception

process

public void process(MsnConnection connection)
Description copied from interface: MsnMessage
Double Dispatching Messages

Parameters:
connection -


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