org.apache.geronimo.messaging
Class MsgBody

java.lang.Object
  extended byorg.apache.geronimo.messaging.MsgBody
All Implemented Interfaces:
Externalizable, Serializable

public class MsgBody
extends Object
implements Externalizable

Msg body.

Version:
$Revision: 1.2 $ $Date: 2004/06/10 23:12:24 $
See Also:
Serialized Form

Nested Class Summary
static class MsgBody.Type
          Type-safe enumeration of body types.
 
Constructor Summary
MsgBody()
          Required for Externalization.
MsgBody(MsgBody aBody)
          Prototype.
 
Method Summary
 Object getContent()
          Gets the content of this body.
 void readExternal(ObjectInput in)
           
 void setContent(Object aContent)
          Sets the content of this body.
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MsgBody

public MsgBody()
Required for Externalization.


MsgBody

public MsgBody(MsgBody aBody)
Prototype.

Parameters:
aBody - Body to be duplicated.
Method Detail

getContent

public Object getContent()
Gets the content of this body.

Returns:
Content.

setContent

public void setContent(Object aContent)
Sets the content of this body.

Parameters:
aContent - New body content.

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

toString

public String toString()


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