Class EPPRegistryInternalHost
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
-
- com.verisign.epp.codec.registry.v02.EPPRegistryInternalHost
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryInternalHost extends EPPRegistryAbstractMinMax
Defines the policies for internal hosts. 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.
- <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:
EPPRegistryHost, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPRegistryInternalHost.SharePolicy
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryInternalHost.protected static java.lang.StringELM_MAX_IPXML Element Name ofmaxattribute.protected static java.lang.StringELM_MIN_IPXML Element Name ofminattribute.static java.lang.StringELM_NAMEXML root tag forEPPRegistryInternalHost.static java.lang.StringELM_SHARE_POLICYXML Element Name ofsharePolicyattribute.static java.lang.StringELM_UNIQUE_IP_ADDRESSES_REQUIREDXML 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
Constructors Constructor Description EPPRegistryInternalHost()Creates a newEPPRegistryInternalHostobject.EPPRegistryInternalHost(int aMin, int aMax, EPPRegistryInternalHost.SharePolicy aSharePolicy, java.lang.Boolean aUniqueIpAddressesRequired)Constructor that takesmin,max,sharePolicy, anduniqueIpAddressesRequiredusingint's.EPPRegistryInternalHost(java.lang.Integer aMin, java.lang.Integer aMax, EPPRegistryInternalHost.SharePolicy aSharePolicy, java.lang.Boolean aUniqueIpAddressesRequired)Constructor that takesmin,max,sharePolicy, anduniqueIpAddressesRequiredusingInteger's.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRegistryInternalHost.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryInternalHostattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryInternalHostinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryInternalHostcompare.protected java.lang.StringgetElmMax()Gets the maximum element local name.protected java.lang.StringgetElmMin()Gets the minimum element local name.protected org.slf4j.LoggergetLogger()Gets theLoggerto use.protected java.lang.StringgetRootName()Gets the root element local name.EPPRegistryInternalHost.SharePolicygetSharePolicy()Gets the share policy.java.lang.BooleangetUniqueIpAddressesRequired()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".booleanhasSharePolicy()Is the share policy defined?voidsetSharePolicy(EPPRegistryInternalHost.SharePolicy aSharePolicy)Sets the share policy.voidsetUniqueIpAddressesRequired(java.lang.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".java.lang.StringtoString()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 Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryInternalHost.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryInternalHost.- See Also:
- Constant Field Values
-
ELM_MIN_IP
protected static final java.lang.String ELM_MIN_IP
XML Element Name ofminattribute.- See Also:
- Constant Field Values
-
ELM_MAX_IP
protected static final java.lang.String ELM_MAX_IP
XML Element Name ofmaxattribute.- See Also:
- Constant Field Values
-
ELM_SHARE_POLICY
public static final java.lang.String ELM_SHARE_POLICY
XML Element Name ofsharePolicyattribute.- See Also:
- Constant Field Values
-
ELM_UNIQUE_IP_ADDRESSES_REQUIRED
public static final java.lang.String ELM_UNIQUE_IP_ADDRESSES_REQUIRED
XML Element Name ofuniqueIpAddressesRequiredattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryInternalHost
public EPPRegistryInternalHost()
Creates a newEPPRegistryInternalHostobject.
-
EPPRegistryInternalHost
public EPPRegistryInternalHost(java.lang.Integer aMin, java.lang.Integer aMax, EPPRegistryInternalHost.SharePolicy aSharePolicy, java.lang.Boolean aUniqueIpAddressesRequired)Constructor that takesmin,max,sharePolicy, anduniqueIpAddressesRequiredusingInteger's.- Parameters:
aMin- minimum number of IPs supported for an internal hostaMax- maximum number of IPs supported for an internal hostaSharePolicy- Share policy to set. Set tonullif undefined.aUniqueIpAddressesRequired- Indicates that all of the IP addresses for the host object must be unique, with a default value of "false". Set tonullto set the default.
-
EPPRegistryInternalHost
public EPPRegistryInternalHost(int aMin, int aMax, EPPRegistryInternalHost.SharePolicy aSharePolicy, java.lang.Boolean aUniqueIpAddressesRequired)Constructor that takesmin,max,sharePolicy, anduniqueIpAddressesRequiredusingint's.- Parameters:
aMin- minimum number of IPs supported for an internal hostaMax- maximum number of IPs supported for an internal hostaSharePolicy- Share policy to set. Set tonullif undefined.aUniqueIpAddressesRequired- Indicates that all of the IP addresses for the host object must be unique, with a default value of "false". Set tonullto set the default.
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryInternalHostinstance.- 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
EPPRegistryInternalHostinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryInternalHostinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryInternalHostattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPRegistryAbstractMinMax- Parameters:
aElement- Root DOM Element to decodeEPPRegistryInternalHostfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryInternalHost.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryAbstractMinMax- Returns:
- clone of
EPPRegistryInternalHost - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryInternalHostcompare.- Overrides:
equalsin classEPPRegistryAbstractMinMax- Parameters:
aObject-EPPRegistryInternalHostinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
hasSharePolicy
public boolean hasSharePolicy()
Is the share policy defined?- Returns:
trueif the share policy is defined;falseotherwise.
-
getSharePolicy
public EPPRegistryInternalHost.SharePolicy getSharePolicy()
Gets the share policy.- Returns:
- share policy if defined;
nullotherwise.
-
setSharePolicy
public void setSharePolicy(EPPRegistryInternalHost.SharePolicy aSharePolicy)
Sets the share policy.- Parameters:
aSharePolicy- Share policy. Set tonullto clear it.
-
getUniqueIpAddressesRequired
public java.lang.Boolean 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
public void setUniqueIpAddressesRequired(java.lang.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".- Parameters:
aUniqueIpAddressesRequired- Set the boolean value. If set tonullthe default value of "false" will be set.
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPRegistryAbstractMinMax- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getRootName
protected java.lang.String getRootName()
Gets the root element local name.- Specified by:
getRootNamein classEPPRegistryAbstractMinMax- Returns:
- Root element local name.
-
getElmMin
protected java.lang.String getElmMin()
Gets the minimum element local name.- Specified by:
getElmMinin classEPPRegistryAbstractMinMax- Returns:
- Minimum element local name.
-
getElmMax
protected java.lang.String 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.
-
-