Package com.adobe.testing.s3mock.util
Class XmlUtil
java.lang.Object
com.adobe.testing.s3mock.util.XmlUtil
Utility class with helper methods to serialize / deserialize JAXB annotated classes.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TdeserializeJaxb(Class<T> clazz, String toDeserialize, Class<?>... additionalTypes) static AccessControlPolicydeserializeJaxb(String toDeserialize) static StringserializeJaxb(AccessControlPolicy toSerialize) static StringserializeJaxb(Object toSerialize, Class<?>... additionalTypes)
-
Constructor Details
-
XmlUtil
public XmlUtil()
-
-
Method Details
-
deserializeJaxb
public static AccessControlPolicy deserializeJaxb(String toDeserialize) throws JAXBException, XMLStreamException - Throws:
JAXBExceptionXMLStreamException
-
deserializeJaxb
public static <T> T deserializeJaxb(Class<T> clazz, String toDeserialize, Class<?>... additionalTypes) throws JAXBException, XMLStreamException - Throws:
JAXBExceptionXMLStreamException
-
serializeJaxb
- Throws:
JAXBException
-
serializeJaxb
public static String serializeJaxb(Object toSerialize, Class<?>... additionalTypes) throws JAXBException - Throws:
JAXBException
-