|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.soa.esb.message.format.MessageFactory
public abstract class MessageFactory
You get a message of a specific type when you need it. Obviously that type may not be suitable for the service (hopefully you've got that contractual information a priori, but maybe not) and in which case some translation/transformation may be necessary. Different ways of viewing and manipulating the Message Body (payload) are available separately via the Payload class. In future releases it will be possible to define the payload type at creation time.
Constructor Summary | |
---|---|
MessageFactory()
|
Method Summary | |
---|---|
abstract java.lang.Object |
createBodyType(Message m,
java.lang.String bodyType)
Given a Message, return the Body component as a specific type for manipulation, e.g., TextMessage or BytesMessage. |
static MessageFactory |
getInstance()
|
abstract Message |
getMessage()
|
abstract Message |
getMessage(Message msg,
java.net.URI type)
Deprecated. Not implemented in 4.2. |
abstract Message |
getMessage(java.net.URI type)
|
abstract void |
reset()
Reload the plugins. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageFactory()
Method Detail |
---|
public abstract Message getMessage()
public abstract Message getMessage(java.net.URI type)
type
- the unique identifier representing the type of this message.
null
if no suitable plugin is available.public abstract Message getMessage(Message msg, java.net.URI type)
msg
- the message to convert.type
- the type of the message we want to convert to.
null
if no suitable plugin is available.public abstract void reset()
public abstract java.lang.Object createBodyType(Message m, java.lang.String bodyType)
m
- the MessagebodyType
- the type of Body to "cast" to.
public static MessageFactory getInstance()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |