org.objectweb.joram.shared.client

Class ProducerMessages

Implemented Interfaces:
java.io.Serializable

public class ProducerMessages
extends AbstractJmsRequest

A ProducerMessages instance is sent by a MessageProducer when sending messages.

See Also:
Serialized Form

Field Summary

Fields inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest

target

Constructor Summary

ProducerMessages(String dest)
Constructs a ProducerMessages instance.
ProducerMessages(String dest, Message msg)
Constructs a ProducerMessages instance carrying a single message.

Method Summary

void
addMessage(Message msg)
Adds a message to deliver.
void
addMessages(Vector msgs)
Adds messages to deliver.
Vector
getMessages()
Returns the produced messages.
void
setMessage(Message msg)
set a message to deliver.
Hashtable
soapCode()
Transforms this request into a hashtable of primitive values that can be vehiculated through the SOAP protocol.
static Object
soapDecode(Hashtable h)
Transforms a hastable of primitive values into a ProducerMessages request.
String
toString()

Methods inherited from class org.objectweb.joram.shared.client.AbstractJmsRequest

getKey, getRequestId, getTarget, setRequestId, setTarget, soapCode, soapDecode, toString

Constructor Details

ProducerMessages

public ProducerMessages(String dest)
Constructs a ProducerMessages instance.

Parameters:
dest - Name of the destination the messages are sent to.


ProducerMessages

public ProducerMessages(String dest,
                        Message msg)
Constructs a ProducerMessages instance carrying a single message.

Parameters:
dest - Name of the destination the messages are sent to.
msg - Message to carry.

Method Details

addMessage

public void addMessage(Message msg)
Adds a message to deliver.


addMessages

public void addMessages(Vector msgs)
Adds messages to deliver.


getMessages

public Vector getMessages()
Returns the produced messages.


setMessage

public void setMessage(Message msg)
set a message to deliver.


soapCode

public Hashtable soapCode()
Transforms this request into a hashtable of primitive values that can be vehiculated through the SOAP protocol.
Overrides:
soapCode in interface AbstractJmsRequest


soapDecode

public static Object soapDecode(Hashtable h)
Transforms a hastable of primitive values into a ProducerMessages request.
Overrides:
soapDecode in interface AbstractJmsRequest


toString

public String toString()
Overrides:
toString in interface AbstractJmsRequest


Copyright B) 2004 Scalagent - All rights reserved