mil.dod.th.ose.remote.integration/src/mil/dod/th/ose/remote/integration/BundleNamespaceUtils.java
public static TerraHarvestMessage createBundleMessage(final Message bundleMessage, final BundleMessageType type)
    {
        BundleNamespace.Builder namespaceBuilder = BundleNamespace.newBuilder().setType(type);
        if (type == BundleMessageType.GetBundlesRequest)
        {  
        }
        else
        {
            namespaceBuilder.setData(bundleMessage.toByteString());
        }

        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMsg(Namespace.Bundle,
            namespaceBuilder);
            
        return thMessage;
    }
/**
     * Construct a TerraHarvestMessage wrapping a bundle message.
     * @param bundleMessage
     *     bundle message
     * @param type
     *     the type of the message
     */
Construct a TerraHarvestMessage wrapping a bundle message.
@param bundleMessage
bundle message
@param type
the type of the message
Construct a TerraHarvestMessage wrapping a bundle message . @param bundleMessage bundle message @param type the type of the message
public static TerraHarvestMessage createBundleMessage(final Message bundleMessage, final BundleMessageType type)
    {
        BundleNamespace.Builder namespaceBuilder = BundleNamespace.newBuilder().setType(type);
        if (type == BundleMessageType.GetBundlesRequest)
        {  
        }
        else
        {
            namespaceBuilder.setData(bundleMessage.toByteString());
        }
        TerraHarvestMessage thMessage = TerraHarvestMessageHelper.createTerraHarvestMsg(Namespace.Bundle,
            namespaceBuilder);
        return thMessage;
    }
public static TerraHarvestMessage createBundleMessage ( final Message bundleMessage , final BundleMessageType type ) { BundleNamespace . Builder namespaceBuilder = BundleNamespace . newBuilder ( ) . setType ( type ) ; if ( type == BundleMessageType . GetBundlesRequest ) { } else { namespaceBuilder . setData ( bundleMessage . toByteString ( ) ) ; } TerraHarvestMessage thMessage = TerraHarvestMessageHelper . createTerraHarvestMsg ( Namespace . Bundle , namespaceBuilder ) ; return thMessage ; }
Construct a TerraHarvestMessage wrapping a bundle message.
Construct a TerraHarvestMessage wrapping a bundle message .