public class MessageManager extends Object
MockSession.| Constructor and Description |
|---|
MessageManager() |
| Modifier and Type | Method and Description |
|---|---|
MockBytesMessage |
createBytesMessage()
Creates a new
BytesMessage. |
MockMapMessage |
createMapMessage()
Creates a new
MapMessage. |
MockMessage |
createMessage()
Creates a new
Message. |
MockObjectMessage |
createObjectMessage(Serializable object)
Creates a new
ObjectMessage. |
MockStreamMessage |
createStreamMessage()
Creates a new
StreamMessage. |
MockTextMessage |
createTextMessage(String text)
Creates a new
TextMessage. |
MockBytesMessage |
getBytesMessage(int index)
Returns a
BytesMessage by its index or
null, if no such BytesMessage is
present. |
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. |
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. |
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. |
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. |
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. |
List |
getTextMessageList()
Returns the list of
TextMessage objects. |
public MockMessage createMessage()
Message. Usually this method is called
by MockSession.createMessage().Messagepublic MockMessage getMessage(int index)
Message by its index or
null, if no such Message is
present.index - the index of the MessageMessagepublic List getMessageList()
Message objects.Message listpublic MockBytesMessage createBytesMessage()
BytesMessage. Usually this method is called
by MockSession.createBytesMessage().BytesMessagepublic MockBytesMessage getBytesMessage(int index)
BytesMessage by its index or
null, if no such BytesMessage is
present.index - the index of the BytesMessageBytesMessagepublic List getBytesMessageList()
BytesMessage objects.BytesMessage listpublic MockMapMessage createMapMessage()
MapMessage. Usually this method is called
by MockSession.createMapMessage().MapMessagepublic MockMapMessage getMapMessage(int index)
MapMessage by its index or
null, if no such MapMessage is
present.index - the index of the MapMessageMapMessagepublic List getMapMessageList()
MapMessage objects.MapMessage listpublic MockTextMessage createTextMessage(String text)
TextMessage. Usually this method is called
by MockSession.createTextMessage().text - the text content of the messageTextMessagepublic MockTextMessage getTextMessage(int index)
TextMessage by its index or
null, if no such TextMessage is
present.index - the index of the TextMessageTextMessagepublic List getTextMessageList()
TextMessage objects.TextMessage listpublic MockStreamMessage createStreamMessage()
StreamMessage. Usually this method is called
by MockSession.createStreamMessage().StreamMessagepublic MockStreamMessage getStreamMessage(int index)
StreamMessage by its index or
null, if no such StreamMessage is
present.index - the index of the StreamMessageStreamMessagepublic List getStreamMessageList()
StreamMessage objects.StreamMessage listpublic MockObjectMessage createObjectMessage(Serializable object)
ObjectMessage. Usually this method is called
by MockSession.createObjectMessage().object - the object content of the messageObjectMessagepublic MockObjectMessage getObjectMessage(int index)
ObjectMessage by its index or
null, if no such ObjectMessage is
present.index - the index of the ObjectMessageObjectMessagepublic List getObjectMessageList()
ObjectMessage objects.ObjectMessage listCopyright © 2003–2020. All rights reserved.