Class EPPRegistryExternalHost
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
com.verisign.epp.codec.registry.v02.EPPRegistryExternalHost
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Defines the policies for external hosts. The <registry:external>
elements contains the following child elements:
- <registry:minIP> - Minimum number of IP addresses supported for an external host.
- <registry:maxIP> - Maximum number of IP addresses supported for an external host.
- <registry:sharePolicy> - The OPTIONAL policy for the sharing of
external hosts in the server.The possible shared policy values include:
- "perRegistrar" - The external hosts are shared across all domains of the registrar. There is a single pool of external hosts defined per registrar.
- "perZone" - The external hosts are shared across all domains of the zone. There is a single pool of external hosts defined for the zone.
- "perSystem" - The external hosts are shared across all zones of the system. There is a single pool of external hosts across all of the zones supported by the system.
- <registry:uniqueIpAddressRequired> - The OPTIONAL boolean value that indicates that all of the IP addresses for the host object must be unique, with a default value of "false".
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumPossible values for thesharePolicyattribute. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPRegistryExternalHost.protected static final StringXML Element Name ofmaxattribute.protected static final StringXML Element Name ofminattribute.static final StringXML root tag forEPPRegistryExternalHost.static final StringXML Element Name ofsharePolicyattribute.static final StringXML Element Name ofuniqueIpAddressesRequiredattribute.Fields inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newEPPRegistryExternalHostobject.EPPRegistryExternalHost(int aMin, int aMax, EPPRegistryExternalHost.SharePolicy aSharePolicy, Boolean aUniqueIpAddressesRequired) Constructor that takesmin,max,sharePolicy, anduniqueIpAddressesRequiredusingint's.EPPRegistryExternalHost(Integer aMin, Integer aMax, EPPRegistryExternalHost.SharePolicy aSharePolicy, Boolean aUniqueIpAddressesRequired) Constructor that takesmin,max,sharePolicy, anduniqueIpAddressesRequiredusingInteger's. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryExternalHost.voidDecode theEPPRegistryExternalHostattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryExternalHostinstance.booleanimplements a deepEPPRegistryExternalHostcompare.protected StringGets the maximum element local name.protected StringGets the minimum element local name.protected org.slf4j.LoggerGets theLoggerto use.protected StringGets the root element local name.Gets the share policy.Gets the OPTIONAL boolean value that indicates that all of the IP addresses for the host object must be unique, with a default value of "false".booleanIs the share policy defined?voidsetSharePolicy(EPPRegistryExternalHost.SharePolicy aSharePolicy) Sets the share policy.voidsetUniqueIpAddressesRequired(Boolean aUniqueIpAddressesRequired) Sets the OPTIONAL boolean value that indicates that all of the IP addresses for the host object must be unique, with a default value of "false".toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
getMax, getMin, getNamespace, setMax, setMin, validateState
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryExternalHost.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryExternalHost.- See Also:
-
ELM_MIN_IP
XML Element Name ofminattribute.- See Also:
-
ELM_MAX_IP
XML Element Name ofmaxattribute.- See Also:
-
ELM_SHARE_POLICY
XML Element Name ofsharePolicyattribute.- See Also:
-
ELM_UNIQUE_IP_ADDRESSES_REQUIRED
XML Element Name ofuniqueIpAddressesRequiredattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryExternalHost
public EPPRegistryExternalHost()Creates a newEPPRegistryExternalHostobject.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryExternalHostinstance.- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPRegistryAbstractMinMax- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryExternalHostinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryExternalHostinstance.
-
decode
Decode theEPPRegistryExternalHostattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPRegistryAbstractMinMax- Parameters:
aElement- Root DOM Element to decodeEPPRegistryExternalHostfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryExternalHost.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryAbstractMinMax- Returns:
- clone of
EPPRegistryExternalHost - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryExternalHostcompare.- Overrides:
equalsin classEPPRegistryAbstractMinMax- Parameters:
aObject-EPPRegistryExternalHostinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
getUniqueIpAddressesRequired
Gets the OPTIONAL boolean value that indicates that all of the IP addresses for the host object must be unique, with a default value of "false".- Returns:
- the
uniqueIpAddressesRequiredboolean value.
-
setUniqueIpAddressesRequired
Sets the OPTIONAL boolean value that indicates that all of the IP addresses for the host object must be unique, with a default value of "false".- Parameters:
aUniqueIpAddressesRequired- Set the boolean value. If set tonullthe default value of "false" will be set.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPRegistryAbstractMinMax- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getRootName
Gets the root element local name.- Specified by:
getRootNamein classEPPRegistryAbstractMinMax- Returns:
- Root element local name.
-
getElmMin
Gets the minimum element local name.- Specified by:
getElmMinin classEPPRegistryAbstractMinMax- Returns:
- Minimum element local name.
-
getElmMax
Gets the maximum element local name.- Specified by:
getElmMaxin classEPPRegistryAbstractMinMax- Returns:
- Maximum element local name.
-
getLogger
protected org.slf4j.Logger getLogger()Gets theLoggerto use.- Specified by:
getLoggerin classEPPRegistryAbstractMinMax- Returns:
Loggerinstance to use for logging.
-