Package google.registry.model.host
Class InetAddressAdapter
java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<google.registry.model.host.InetAddressAdapter.AddressShim,InetAddress>
google.registry.model.host.InetAddressAdapter
public final class InetAddressAdapter
extends jakarta.xml.bind.annotation.adapters.XmlAdapter<google.registry.model.host.InetAddressAdapter.AddressShim,InetAddress>
Used by JAXB to convert InetAddress objects to and from AddrType objects, which are the
intermediate representations of IP addresses in EPP host commands.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Exception for when the specified type of an address (v4/v6) doesn't match its actual type. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongoogle.registry.model.host.InetAddressAdapter.AddressShim
marshal
(InetAddress inetAddress) unmarshal
(google.registry.model.host.InetAddressAdapter.AddressShim shim)
-
Constructor Details
-
InetAddressAdapter
public InetAddressAdapter()
-
-
Method Details
-
marshal
- Specified by:
marshal
in classjakarta.xml.bind.annotation.adapters.XmlAdapter<google.registry.model.host.InetAddressAdapter.AddressShim,
InetAddress>
-
unmarshal
public InetAddress unmarshal(google.registry.model.host.InetAddressAdapter.AddressShim shim) throws InetAddressAdapter.IpVersionMismatchException - Specified by:
unmarshal
in classjakarta.xml.bind.annotation.adapters.XmlAdapter<google.registry.model.host.InetAddressAdapter.AddressShim,
InetAddress> - Throws:
InetAddressAdapter.IpVersionMismatchException
-