|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.universAAL.ri.gateway.communicator.service.impl.MessageWrapper
public class MessageWrapper
A message wrapper for requests and responses sent between communicators.
Constructor Summary | |
---|---|
MessageWrapper(MessageType type,
Message message,
String sourceId)
Wraps a message with a random ID. |
|
MessageWrapper(MessageType type,
Message message,
URL returnTo,
String sourceId)
Wraps an asynchronous request stating where it should be sent back. |
|
MessageWrapper(MessageType type,
Message message,
UUID id,
String sourceId)
Wraps a message with a concrete ID (for responses). |
Method Summary | |
---|---|
UUID |
getId()
|
Message |
getMessage()
|
URL |
getReturnTo()
|
String |
getSourceId()
|
MessageType |
getType()
|
void |
setSourceId(String sourceId)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageWrapper(MessageType type, Message message, UUID id, String sourceId)
type
- type of the messagemessage
- the messageid
- IDpublic MessageWrapper(MessageType type, Message message, String sourceId)
type
- type of the messagemessage
- the messagepublic MessageWrapper(MessageType type, Message message, URL returnTo, String sourceId)
type
- type of the messagemessage
- the messagereturnTo
- where to send it backMethod Detail |
---|
public String toString()
toString
in class Object
public UUID getId()
public MessageType getType()
public Message getMessage()
public URL getReturnTo()
public String getSourceId()
public void setSourceId(String sourceId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |