Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.ssh
Class MessageSSHImpl

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.AbstractMessage
      extended by net.java.sip.communicator.impl.protocol.ssh.MessageSSHImpl
All Implemented Interfaces:
Message

public class MessageSSHImpl
extends AbstractMessage

Very simple message implementation for the SSH protocol.

Author:
Shobhit Jindal, Lubomir Marinov

Field Summary
static String contentType
          The content type of the message.
 
Constructor Summary
MessageSSHImpl(String content, String contentType, String contentEncoding, String subject)
          Creates a message instance according to the specified parameters.
 
Method Summary
 String getContentType()
          Returns the type of the content of this message.
 
Methods inherited from class net.java.sip.communicator.service.protocol.AbstractMessage
createMessageUID, getContent, getEncoding, getMessageUID, getRawData, getSize, getSubject, setContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contentType

public static String contentType
The content type of the message.

Constructor Detail

MessageSSHImpl

public MessageSSHImpl(String content,
                      String contentType,
                      String contentEncoding,
                      String subject)
Creates a message instance according to the specified parameters.

Parameters:
content - the message body
contentType - message content type or null for text/plain
contentEncoding - message encoding or null for UTF8
subject - the subject of the message or null for no subject.
Method Detail

getContentType

public String getContentType()
Returns the type of the content of this message.

Specified by:
getContentType in interface Message
Overrides:
getContentType in class AbstractMessage
Returns:
the type of the content of this message.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.