|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mockrunner.jms.MessageManager
public class MessageManager
Can be used to create and access all type of messages.
The create methods are usually called by
MockSession
.
Constructor Summary | |
---|---|
MessageManager()
|
Method Summary | |
---|---|
MockBytesMessage |
createBytesMessage()
Creates a new BytesMessage . |
MockMapMessage |
createMapMessage()
Creates a new MapMessage . |
MockMessage |
createMessage()
Creates a new Message . |
MockObjectMessage |
createObjectMessage(java.io.Serializable object)
Creates a new ObjectMessage . |
MockStreamMessage |
createStreamMessage()
Creates a new StreamMessage . |
MockTextMessage |
createTextMessage(java.lang.String text)
Creates a new TextMessage . |
MockBytesMessage |
getBytesMessage(int index)
Returns a BytesMessage by its index or
null , if no such BytesMessage is
present. |
java.util.List |
getBytesMessageList()
Returns the list of BytesMessage objects. |
MockMapMessage |
getMapMessage(int index)
Returns a MapMessage by its index or
null , if no such MapMessage is
present. |
java.util.List |
getMapMessageList()
Returns the list of MapMessage objects. |
MockMessage |
getMessage(int index)
Returns a Message by its index or
null , if no such Message is
present. |
java.util.List |
getMessageList()
Returns the list of Message objects. |
MockObjectMessage |
getObjectMessage(int index)
Returns a ObjectMessage by its index or
null , if no such ObjectMessage is
present. |
java.util.List |
getObjectMessageList()
Returns the list of ObjectMessage objects. |
MockStreamMessage |
getStreamMessage(int index)
Returns a StreamMessage by its index or
null , if no such StreamMessage is
present. |
java.util.List |
getStreamMessageList()
Returns the list of StreamMessage objects. |
MockTextMessage |
getTextMessage(int index)
Returns a TextMessage by its index or
null , if no such TextMessage is
present. |
java.util.List |
getTextMessageList()
Returns the list of TextMessage objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageManager()
Method Detail |
---|
public MockMessage createMessage()
Message
. Usually this method is called
by MockSession.createMessage()
.
Message
public MockMessage getMessage(int index)
Message
by its index or
null
, if no such Message
is
present.
index
- the index of the Message
Message
public java.util.List getMessageList()
Message
objects.
Message
listpublic MockBytesMessage createBytesMessage()
BytesMessage
. Usually this method is called
by MockSession.createBytesMessage()
.
BytesMessage
public MockBytesMessage getBytesMessage(int index)
BytesMessage
by its index or
null
, if no such BytesMessage
is
present.
index
- the index of the BytesMessage
BytesMessage
public java.util.List getBytesMessageList()
BytesMessage
objects.
BytesMessage
listpublic MockMapMessage createMapMessage()
MapMessage
. Usually this method is called
by MockSession.createMapMessage()
.
MapMessage
public MockMapMessage getMapMessage(int index)
MapMessage
by its index or
null
, if no such MapMessage
is
present.
index
- the index of the MapMessage
MapMessage
public java.util.List getMapMessageList()
MapMessage
objects.
MapMessage
listpublic MockTextMessage createTextMessage(java.lang.String text)
TextMessage
. Usually this method is called
by MockSession.createTextMessage()
.
TextMessage
public MockTextMessage getTextMessage(int index)
TextMessage
by its index or
null
, if no such TextMessage
is
present.
index
- the index of the TextMessage
TextMessage
public java.util.List getTextMessageList()
TextMessage
objects.
TextMessage
listpublic MockStreamMessage createStreamMessage()
StreamMessage
. Usually this method is called
by MockSession.createStreamMessage()
.
StreamMessage
public MockStreamMessage getStreamMessage(int index)
StreamMessage
by its index or
null
, if no such StreamMessage
is
present.
index
- the index of the StreamMessage
StreamMessage
public java.util.List getStreamMessageList()
StreamMessage
objects.
StreamMessage
listpublic MockObjectMessage createObjectMessage(java.io.Serializable object)
ObjectMessage
. Usually this method is called
by MockSession.createObjectMessage()
.
ObjectMessage
public MockObjectMessage getObjectMessage(int index)
ObjectMessage
by its index or
null
, if no such ObjectMessage
is
present.
index
- the index of the ObjectMessage
ObjectMessage
public java.util.List getObjectMessageList()
ObjectMessage
objects.
ObjectMessage
list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |