Package com.verisign.epp.codec.registry
Class EPPRegistryInternalHost
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryMinMaxLength
com.verisign.epp.codec.registry.EPPRegistryInternalHost
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Defines the minimum and maximum number of IP addresses supported for an
internal host. The <registry:internal> elements contains the following
child elements:
- <registry:minIP> - Minimum number of IP addresses supported for an internal host.
- <registry:maxIP> - Maximum number of IP addresses supported for an internal host.
- <registry:sharePolicy> - The OPTIONAL policy for the sharing of
internal hosts in the server.The possible shared policy values include:
- "perZone" - The internal hosts are shared across all domains of the zone. There is a single pool of internal hosts defined for the zone.
- "perSystem" - The internal hosts are shared across all zones of the system. There is a single pool of internal hosts across all of the zones supported by the system.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the status local namestatic final StringConstant for the external host (prefix and local name)static final StringXML Element Name ofsharePolicyattributestatic final StringConstant for perSystem policystatic final StringConstant for perZone policystatic final ListListof valid share policiesFields inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMaxLength
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH, elmMax, elmMin, max, min, rootName -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorEPPRegistryInternalHost(int min, int max, String sharePolicy) Constructor that takesmin,maxandsharePolicy.EPPRegistryInternalHost(Integer min, Integer max, String sharePolicy) Constructor that takesmin,maxandsharePolicy. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryInternalHost.voidDecode theEPPRegistryInternalHostattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryInternalHostinstance.booleanimplements a deepEPPRegistryInternalHostcompare.Gets the shared policy.voidsetSharePolicy(String sharePolicy) Sets the shared policy.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.protected voidValidate the state of theEPPRegistryInternalHostinstance.Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMaxLength
getElmMax, getElmMin, getMax, getMin, getNamespace, getRootName, setElmMax, setElmMin, setMax, setMin, setRootName
-
Field Details
-
ELM_LOCALNAME
Constant for the status local name- See Also:
-
ELM_NAME
Constant for the external host (prefix and local name)- See Also:
-
ELM_SHARE_POLICY
XML Element Name ofsharePolicyattribute- See Also:
-
VALID_POLICIES
Listof valid share policies -
TYPE_PER_ZONE
Constant for perZone policy- See Also:
-
TYPE_PER_SYSTEM
Constant for perSystem policy- See Also:
-
-
Constructor Details
-
EPPRegistryInternalHost
public EPPRegistryInternalHost()Default constructor -
EPPRegistryInternalHost
Constructor that takesmin,maxandsharePolicy.- Parameters:
min- minimum number of IPs supported for an internal hostmax- maximum number of IPs supported for an internal hostsharePolicy- "perZone" or "perSystem"
-
EPPRegistryInternalHost
Constructor that takesmin,maxandsharePolicy.- Parameters:
min- minimum number of IPs supported for an internal hostmax- maximum number of IPs supported for an internal hostsharePolicy- "perZone" or "perSystem"
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryInternalHostinstance.- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPRegistryMinMaxLength- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryInternalHostinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryInternalHostinstance.
-
decode
Decode theEPPRegistryInternalHostattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPRegistryMinMaxLength- Parameters:
aElement- Root DOM Element to decodeEPPRegistryInternalHostfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryInternalHost.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryMinMaxLength- Returns:
- clone of
EPPRegistryInternalHost - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryInternalHostcompare.- Overrides:
equalsin classEPPRegistryMinMaxLength- Parameters:
aObject-EPPRegistryInternalHostinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPRegistryMinMaxLength- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
validateState
Validate the state of theEPPRegistryInternalHostinstance. A valid state means that all of the required attributes have been set. If validateState returns without an exception, the state is valid. If the state is not valid, the EPPCodecException will contain a description of the error. throws EPPCodecException State error. This will contain the name of the attribute that is not valid.- Overrides:
validateStatein classEPPRegistryMinMaxLength- Throws:
EPPEncodeException- On invalid state
-