Package google.registry.model.eppcommon
Class EppXmlTransformer
java.lang.Object
google.registry.model.eppcommon.EppXmlTransformer
XmlTransformer
for marshalling to and from the Epp model classes.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
marshal
(EppOutput root, ValidationMode validation) static byte[]
marshalInput
(EppInput root, ValidationMode validation) static <T> T
Unmarshal bytes into Epp classes.static void
validateInput
(String xml) static void
validateOutput
(String xml)
-
Constructor Details
-
EppXmlTransformer
public EppXmlTransformer()
-
-
Method Details
-
validateOutput
- Throws:
XmlException
-
unmarshal
Unmarshal bytes into Epp classes.- Parameters:
clazz
- type to return, specified as a param to enforce typesafe generics- Throws:
XmlException
-
marshal
- Throws:
XmlException
-
marshalInput
- Throws:
XmlException
-
validateInput
- Throws:
XmlException
-