com.codestreet.messageforge
Class ConverterTibrv

java.lang.Object
  extended bycom.codestreet.messageforge.Converter
      extended bycom.codestreet.messageforge.ConverterTibrv

public abstract class ConverterTibrv
extends Converter


Field Summary
static java.lang.String MSG_NAME
          Name of String property with the message name.
static java.lang.String XML_FIELD_NAME
          Name of String field with the XML representation of non-JMS supported field types.
 
Constructor Summary
ConverterTibrv()
           
 
Method Summary
static com.tibco.tibrv.TibrvMsg marshal(RMapMessage source)
          Create a TibrvMsg from a RMapMessage.
static com.tibco.tibrv.TibrvMsg marshal(RMapMessage source, com.tibco.tibrv.TibrvMsg target)
          Create a TibrvMsg from a RMapMessage.
static RMapMessage unmarshal(com.tibco.tibrv.TibrvMsg source)
          Create and set a RMsg from a TibrvMsg.
static void unmarshal(com.tibco.tibrv.TibrvMsg source, RMapMessage target)
          Create and set a RMsg from a TibrvMsg.
 
Methods inherited from class com.codestreet.messageforge.Converter
createMsgObject, createMsgObject, dateToDouble, dateToLong, dateToStr, getBeanValidator, getLenient, getVersion, setBeanValidator, setDateFromDouble, setDateFromLong, setDateFromStr, setDefaultFactory, setMaximumFractionDigits
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_NAME

public static final java.lang.String MSG_NAME
Name of String property with the message name.

See Also:
Constant Field Values

XML_FIELD_NAME

public static final java.lang.String XML_FIELD_NAME
Name of String field with the XML representation of non-JMS supported field types.

See Also:
Constant Field Values
Constructor Detail

ConverterTibrv

public ConverterTibrv()
Method Detail

marshal

public static com.tibco.tibrv.TibrvMsg marshal(RMapMessage source)
                                        throws ConverterException
Create a TibrvMsg from a RMapMessage. The marshalling to TIBCO Rendezvous is done by in three steps: First a String field with the name of the message is set in the TibrvMsg. Next all fields in the RMapMessage that are supported in TIBCO Rendezvous are copied to the TibrvMsg.

Parameters:
source - Source message.
Returns:
TibrvMsg
Throws:
ConverterException
See Also:
RMapMessage, RMsg

marshal

public static com.tibco.tibrv.TibrvMsg marshal(RMapMessage source,
                                               com.tibco.tibrv.TibrvMsg target)
                                        throws ConverterException
Create a TibrvMsg from a RMapMessage. The marshalling to TIBCO Rendezvous is done by in three steps: First a String field with the name of the message is set in the com.tibco.tibrv.TibrvMsg. Next all fields in the RMapMessage that are supported in TIBCO Rendezvous are copied to the com.tibco.tibrv.TibrvMsg.

Parameters:
source - Source message.
Returns:
TibrvMsg
Throws:
ConverterException
See Also:
RMapMessage, RMsg

unmarshal

public static RMapMessage unmarshal(com.tibco.tibrv.TibrvMsg source)
                             throws ConverterException
Create and set a RMsg from a TibrvMsg.

Parameters:
source - Source message.
Returns:
Unmarshalled message object.
Throws:
ConverterException
See Also:
unmarshal(TibrvMsg, RMapMessage)

unmarshal

public static void unmarshal(com.tibco.tibrv.TibrvMsg source,
                             RMapMessage target)
                      throws ConverterException
Create and set a RMsg from a TibrvMsg.

Parameters:
source - Source message.
target - Target message object.
Throws:
ConverterException


Copyright © 2003-2006 CodeStreet. All Rights Reserved.