Package google.registry.rde
Class RdeMarshaller
java.lang.Object
google.registry.rde.RdeMarshaller
- All Implemented Interfaces:
Serializable
XML document fragment marshaller for RDE.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns bottom-portion of XML document.makeHeader
(String depositId, org.joda.time.DateTime watermark, Collection<String> uris, int revision) Returns top-portion of XML document.marshal
(jakarta.xml.bind.JAXBElement<?> element) Turns XJC element into XML fragment, with schema validation unless in lenient mode.marshalContact
(Contact contact) TurnsContact
object into an XML fragment.marshalDomain
(Domain domain, RdeMode mode) TurnsDomain
object into an XML fragment.marshalExternalHost
(Host host) TurnsHost
object into an XML fragment.marshalIdn
(IdnTable idn) TurnsIdnTable
object into an XML fragment.marshalOrDie
(jakarta.xml.bind.JAXBElement<?> element) Turns XJC element into XML fragment, convertingMarshalException
s toRuntimeException
s.marshalRegistrar
(Registrar registrar) TurnsRegistrar
object into an XML fragment.marshalSubordinateHost
(Host host, Domain superordinateDomain) TurnsHost
object into an XML fragment.
-
Constructor Details
-
RdeMarshaller
-
-
Method Details
-
makeHeader
public String makeHeader(String depositId, org.joda.time.DateTime watermark, Collection<String> uris, int revision) Returns top-portion of XML document. -
marshal
public String marshal(jakarta.xml.bind.JAXBElement<?> element) throws jakarta.xml.bind.MarshalException Turns XJC element into XML fragment, with schema validation unless in lenient mode.- Throws:
jakarta.xml.bind.MarshalException
-
marshalOrDie
Turns XJC element into XML fragment, convertingMarshalException
s toRuntimeException
s. -
marshalContact
TurnsContact
object into an XML fragment. -
marshalDomain
TurnsDomain
object into an XML fragment. -
marshalSubordinateHost
TurnsHost
object into an XML fragment. -
marshalExternalHost
TurnsHost
object into an XML fragment. -
marshalRegistrar
TurnsRegistrar
object into an XML fragment. -
marshalIdn
TurnsIdnTable
object into an XML fragment.
-