au.gov.nehta.vendorlibrary.mdm.util
Class MDMUtil

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.mdm.util.MDMUtil

public final class MDMUtil
extends java.lang.Object

MDMUtil Utility class for MDM messages.


Method Summary
static Message readMDMMessageFromFile(java.lang.String path)
          Helper utility method to read an MDM message from file for test purposes.
static void writeMDMMessageToFile(Message message, java.lang.String path)
          Helper utility method to write an MDM message to file for test purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeMDMMessageToFile

public static void writeMDMMessageToFile(Message message,
                                         java.lang.String path)
                                  throws java.io.IOException
Helper utility method to write an MDM message to file for test purposes.

Parameters:
message - Populated MDM message object.
path - Output file path.
Throws:
java.io.IOException - Thrown if writing fails.

readMDMMessageFromFile

public static Message readMDMMessageFromFile(java.lang.String path)
                                      throws java.io.IOException
Helper utility method to read an MDM message from file for test purposes.

Parameters:
path - Path to MDM message file.
Returns:
Populated Message/null.
Throws:
java.io.IOException - Thrown if reading of the file fails.