mirror of
https://github.com/google/nomulus.git
synced 2025-07-20 09:46:03 +02:00
Add the ability to generate RDE deposits in lenient mode
We will not want to run this under normal circumstances, but in cases (such as PDT testing in sandbox) where it's desirable to generate an escrow deposit even if it isn't technically valid XML, this gives us that option. Manual-mode RDE generation is also changed so that, if no watermark date is specified, it defaults to the previous midnight, to better support running of RDE in sandbox to catch data problems. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=156108295
This commit is contained in:
parent
e1f4df86bd
commit
74a0defef3
9 changed files with 101 additions and 33 deletions
|
@ -18,6 +18,7 @@ import static google.registry.xml.ValidationMode.LENIENT;
|
|||
import static google.registry.xml.ValidationMode.STRICT;
|
||||
|
||||
import com.google.common.collect.ImmutableMap;
|
||||
import google.registry.xml.ValidationMode;
|
||||
import google.registry.xml.XmlException;
|
||||
import google.registry.xml.XmlTransformer;
|
||||
import java.io.InputStream;
|
||||
|
@ -82,4 +83,10 @@ public class XjcXmlTransformer {
|
|||
throws XmlException {
|
||||
INSTANCE.marshal(root, out, charset, STRICT);
|
||||
}
|
||||
|
||||
public static void marshal(
|
||||
Object root, OutputStream out, Charset charset, ValidationMode validationMode)
|
||||
throws XmlException {
|
||||
INSTANCE.marshal(root, out, charset, validationMode);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue