Class PunchOutUtils


  • public class PunchOutUtils
    extends java.lang.Object
    • Field Detail

      • LOAD_EXTERNAL_DTD

        protected static final java.lang.String LOAD_EXTERNAL_DTD
        See Also:
        Constant Field Values
      • EXTERNAL_GENERAL_ENTITIES

        protected static final java.lang.String EXTERNAL_GENERAL_ENTITIES
        See Also:
        Constant Field Values
      • EXTERNAL_PARAMETER_ENTITIES

        protected static final java.lang.String EXTERNAL_PARAMETER_ENTITIES
        See Also:
        Constant Field Values
    • Method Detail

      • unmarshallCXMLFromFile

        public static CXML unmarshallCXMLFromFile​(java.lang.String relativeFilePath)
                                           throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
      • marshallFromBeanTree

        public static java.lang.String marshallFromBeanTree​(CXML cxml)
      • removeStandalone

        public static void removeStandalone​(javax.xml.bind.Marshaller marshaller)
                                     throws javax.xml.bind.PropertyException
        Throws:
        javax.xml.bind.PropertyException
      • setHeader

        public static void setHeader​(javax.xml.bind.Marshaller m)
                              throws javax.xml.bind.PropertyException
        Throws:
        javax.xml.bind.PropertyException
      • transformCXMLToBase64

        public static java.lang.String transformCXMLToBase64​(CXML cxml)
        Transforms a CXML into a Base64 String.
        Parameters:
        cxml - the cxml object.
        Returns:
        Base64 String