Package google.registry.flows
Class FlowUtils
java.lang.Object
google.registry.flows.FlowUtils
Static utility functions for flows.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Generic XML syntax error that can be thrown by any flow.static class
IP address version mismatch.static class
Registrar is not logged in.static class
Unknown currency. -
Method Summary
Modifier and TypeMethodDescriptionstatic HistoryEntry.HistoryEntryId
createHistoryEntryId
(EppResource parent) static byte[]
marshalWithLenientRetry
(EppOutput eppOutput) static void
persistEntityChanges
(EntityChanges entityChanges) Persists the saves and deletes in anEntityChanges
to the DB.static <T> T
unmarshalEpp
(Class<T> clazz, byte[] bytes) Unmarshal bytes into Epp classes.static void
validateRegistrarIsLoggedIn
(String registrarId) Validate that there is a logged in client.
-
Method Details
-
validateRegistrarIsLoggedIn
Validate that there is a logged in client.- Throws:
EppException
-
persistEntityChanges
Persists the saves and deletes in anEntityChanges
to the DB. -
unmarshalEpp
Unmarshal bytes into Epp classes. Does the same asEppXmlTransformer.unmarshal(Class, byte[])
but with exception-handling logic to throwEppException
instead.- Throws:
EppException
-
marshalWithLenientRetry
-
createHistoryEntryId
-