org.apache.geronimo.messaging
Class Msg

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

public class Msg
extends Object
implements Externalizable

A message.
Msgs are Externalizable as they are sent across the wire.

Version:
$Revision: 1.3 $ $Date: 2004/07/20 00:08:14 $
See Also:
Serialized Form

Constructor Summary
Msg()
          Creates a new Msg.
Msg(Msg aPrototype)
          Prototype.
 
Method Summary
 MsgBody getBody()
          Gets the body
 MsgHeader getHeader()
          Gets the header.
 void readExternal(ObjectInput in)
           
 Msg reply()
          Builds a response Msg from this Msg.
 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

Msg

public Msg()
Creates a new Msg.


Msg

public Msg(Msg aPrototype)
Prototype.

Parameters:
aPrototype - Msg to be duplicated.
Method Detail

reply

public Msg reply()
Builds a response Msg from this Msg.

Returns:
Response Msg for this Msg.

getHeader

public MsgHeader getHeader()
Gets the header.

Returns:
Header.

getBody

public MsgBody getBody()
Gets the body

Returns:
Body.

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.