org.mactor.brokers
Class Message

java.lang.Object
  extended by org.mactor.brokers.Message

public class Message
extends java.lang.Object

The message implementation

Author:
Lars Ivar Almli

Constructor Summary
Message()
           
 
Method Summary
 void consume()
           
static Message createMessage(org.dom4j.Document doc)
           
static Message createMessage(org.dom4j.Document doc, java.util.Map<java.lang.String,java.lang.String> messageProperties)
           
static Message createMessage(java.io.File file)
           
static Message createMessage(java.io.File file, java.util.Map<java.lang.String,java.lang.String> messageProperties)
           
static Message createMessage(java.io.InputStream inputStream)
           
static Message createMessage(java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.String> messageProperties)
           
static Message createMessage(java.io.Reader reader)
           
static Message createMessage(java.io.Reader reader, java.util.Map<java.lang.String,java.lang.String> messageProperties)
           
static Message createMessage(java.lang.String content)
           
static Message createMessage(java.lang.String content, java.util.Map<java.lang.String,java.lang.String> messageProperties)
           
 java.lang.String getContent()
           
 org.dom4j.Document getContentDocument()
           
 org.dom4j.Document getContentDocumentNoNs()
           
 java.lang.String getId()
           
 MessageContextInfo getMessageContextInfo()
           
 java.util.Map<java.lang.String,java.lang.String> getMessageProperties()
           
 boolean isConsumed()
           
 void writeToFile(java.io.File destFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message()
Method Detail

getMessageProperties

public java.util.Map<java.lang.String,java.lang.String> getMessageProperties()

consume

public void consume()

isConsumed

public boolean isConsumed()

getContent

public java.lang.String getContent()

getContentDocument

public org.dom4j.Document getContentDocument()
                                      throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(java.lang.String content)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(java.lang.String content,
                                    java.util.Map<java.lang.String,java.lang.String> messageProperties)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(org.dom4j.Document doc)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(org.dom4j.Document doc,
                                    java.util.Map<java.lang.String,java.lang.String> messageProperties)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(java.io.InputStream inputStream)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(java.io.InputStream inputStream,
                                    java.util.Map<java.lang.String,java.lang.String> messageProperties)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(java.io.Reader reader)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(java.io.Reader reader,
                                    java.util.Map<java.lang.String,java.lang.String> messageProperties)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(java.io.File file)
                             throws MactorException
Throws:
MactorException

createMessage

public static Message createMessage(java.io.File file,
                                    java.util.Map<java.lang.String,java.lang.String> messageProperties)
                             throws MactorException
Throws:
MactorException

writeToFile

public void writeToFile(java.io.File destFile)
                 throws MactorException
Throws:
MactorException

getContentDocumentNoNs

public org.dom4j.Document getContentDocumentNoNs()
                                          throws MactorException
Throws:
MactorException

getId

public java.lang.String getId()

getMessageContextInfo

public MessageContextInfo getMessageContextInfo()


Copyright © 2008. All Rights Reserved.