org.apache.servicemix.client
Interface Message

All Superinterfaces:
org.apache.servicemix.jbi.api.Message, javax.jbi.messaging.NormalizedMessage

Deprecated.

public interface Message
extends org.apache.servicemix.jbi.api.Message

An extension of the standard NormalizedMessage which allows you to work directly with message bodies as POJOs ignoring the XML stuff or passing a binary message around as a ByteBuffer or byte[]

Version:
$Revision: 359151 $

Method Summary
 javax.jbi.messaging.Fault createFault()
          Deprecated. Helper method to create a new fault for this message exchange
 Object getBody()
          Deprecated. Returns the body as a POJO.
 Object getBody(PojoMarshaler marshaler)
          Deprecated.  
 javax.jbi.messaging.MessageExchange getExchange()
          Deprecated. Returns the message exchange
 void setBody(Object body)
          Deprecated. Sets the body as a POJO
 
Methods inherited from interface org.apache.servicemix.jbi.api.Message
getBody
 
Methods inherited from interface javax.jbi.messaging.NormalizedMessage
addAttachment, getAttachment, getAttachmentNames, getContent, getProperty, getPropertyNames, getSecuritySubject, removeAttachment, setContent, setProperty, setSecuritySubject
 

Method Detail

getBody

Object getBody()
               throws javax.jbi.messaging.MessagingException
Deprecated. 
Returns the body as a POJO. Depending on the implementation this could be a Java POJO, a DOM tree or a byte[]

Specified by:
getBody in interface org.apache.servicemix.jbi.api.Message
Throws:
javax.jbi.messaging.MessagingException

setBody

void setBody(Object body)
             throws javax.jbi.messaging.MessagingException
Deprecated. 
Sets the body as a POJO

Specified by:
setBody in interface org.apache.servicemix.jbi.api.Message
Throws:
javax.jbi.messaging.MessagingException

getBody

Object getBody(PojoMarshaler marshaler)
               throws javax.jbi.messaging.MessagingException
Deprecated. 
Throws:
javax.jbi.messaging.MessagingException

getExchange

javax.jbi.messaging.MessageExchange getExchange()
Deprecated. 
Returns the message exchange

Specified by:
getExchange in interface org.apache.servicemix.jbi.api.Message

createFault

javax.jbi.messaging.Fault createFault()
                                      throws javax.jbi.messaging.MessagingException
Deprecated. 
Helper method to create a new fault for this message exchange

Specified by:
createFault in interface org.apache.servicemix.jbi.api.Message
Throws:
javax.jbi.messaging.MessagingException


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.