Package de.hybris.platform.b2b.punchout
Class PunchOutUtils
- java.lang.Object
-
- de.hybris.platform.b2b.punchout.PunchOutUtils
-
public class PunchOutUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringEXTERNAL_GENERAL_ENTITIESprotected static java.lang.StringEXTERNAL_PARAMETER_ENTITIESprotected static java.lang.StringLOAD_EXTERNAL_DTD
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringmarshallFromBeanTree(CXML cxml)static voidremoveStandalone(javax.xml.bind.Marshaller marshaller)static voidsetHeader(javax.xml.bind.Marshaller m)static java.lang.StringtransformCXMLToBase64(CXML cxml)Transforms a CXML into a Base64 String.static CXMLunmarshallCXMLFromFile(java.lang.String relativeFilePath)
-
-
-
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
-
-