public interface MessageFactory
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getKnownMessageURNs()
Get all message urns understood by this factory.
|
Message |
makeMessage(java.lang.String urn,
java.io.InputStream data)
Create a message based on its urn and populate it with data from a stream.
|
Message makeMessage(java.lang.String urn, java.io.InputStream data) throws java.io.IOException
urn
- The urn of the message type to create.data
- An InputStream to read message data from.java.io.IOException
- If there is a problem reading the stream.java.lang.String[] getKnownMessageURNs()