core
Class Message

java.lang.Object
  extended bycore.Message
Direct Known Subclasses:
ErrorMessage, PresenceMessage, SearchMessage, TextMessage

public abstract class Message
extends java.lang.Object

Universal class for a message. Any message type should inherit from this.

Author:
hoela

Method Summary
 java.lang.String getDestination()
           
 long getId()
           
 MessageType getMessageType()
           
 java.lang.String getSource()
           
 void restamp()
           
abstract  byte[] toXML()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDestination

public java.lang.String getDestination()
Returns:
Returns the destination.

getSource

public java.lang.String getSource()
Returns:
Returns the source.

getMessageType

public MessageType getMessageType()
Returns:
Returns the type.

getId

public long getId()
Returns:
Returns the id.

restamp

public void restamp()

toXML

public abstract byte[] toXML()