Class EPPRegistryHost
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryHost
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents the host object policy information per RFC 5732. The
<registry:host> element contains the following child elements:
- <registry:internal> - Defines the minimum and maximum number of IP
addresses supported for an internal host. Use
getInternal()andsetInternal(EPPRegistryInternalHost)to get and set the element. - <registry:external> - Defines the policies for external hosts. Use
getExternal()andsetExternal(EPPRegistryExternalHost)to get and set the element. - <registry:nameRegex> - The OPTIONAL regular expression used to
validate the host name value. Use
getNameRegex()andsetNameRegex(EPPRegistryRegex)to get and set the element. - <registry:maxCheckHost> - The OPTIONAL maximum number of host names
(<domain:name> elements) that can be included in a host check command
defined in RFC 5732. Use
getMaxCheckHost()andsetMaxCheckHost(Integer)to get and set the element. - <registry:supportedStatus> - The OPTIONAL set of supported host
statuses defined in RFC 5732. Use
getSupportedStatus()andsetSupportedStatus(EPPRegistrySupportedStatus)to get and set the element. - <registry:invalidIP> - Zero or more <registry:invalidIP>
elements that defines the URI of an externally defined list of invalid IP
addresses. The IP addresses referenced by the list of
<registry:invalidIP> elements should be combined and normalized by the
client to define the complete set of invalid IP addresses. Use
getInvalidIPs()andsetInvalidIPs(List)to get and set these elements.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML Element Name ofauthInfoRegexattribute.static final StringXML Element Name ofinvalidIPsattribute.static final StringXML local name forEPPRegistryHost.static final StringXML Element Name ofmaxCheckHostattribute.static final StringXML root tag forEPPRegistryHost.static final StringXML Element Name ofnameRegexattribute. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInvalidIP(String aInvalidIP) Adds one invalid IP address URI to the list.clone()CloneEPPRegistryHost.voidDecode theEPPRegistryHostattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryHostinstance.booleanimplements a deepEPPRegistryHostcompare.Gets the external host attributes.Gets the internal host attributes.Gets the invalid IP address URIs.Gets maximum number of host names that can be included in a host check command.Get the regular expression that host name must follow.Returns the XML namespace associated with theEPPCodecComponent.Gets a set of supported host statuses defined in RFC 5732.booleanIs the invalid IPs defined?booleanIs the maximum number of host names defined?booleanIs the host name regular expression defined?voidsetExternal(EPPRegistryExternalHost aExternal) Sets the external host attributes.voidsetInternal(EPPRegistryInternalHost aInternal) Sets the internal host attributes.voidsetInvalidIPs(List<String> aInvalidIPs) Sets the invalid IP address URIs.voidsetMaxCheckHost(Integer aMaxCheckHost) Sets maximum number of host names that can be included in a host check command.voidsetNameRegex(EPPRegistryRegex aNameRegex) Set the regular expression that host name must follow.voidsetSupportedStatus(EPPRegistrySupportedStatus aSupportedStatus) Sets a set of supported host statuses defined in RFC 5732.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryHost.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryHost.- See Also:
-
ELM_NAME_REGEX
XML Element Name ofnameRegexattribute.- See Also:
-
ELM_MAX_CHECK
XML Element Name ofmaxCheckHostattribute.- See Also:
-
ELM_AUTH_INFO_REGEX
XML Element Name ofauthInfoRegexattribute.- See Also:
-
ELM_INVALID_IP
XML Element Name ofinvalidIPsattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryHost
public EPPRegistryHost()
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryHostinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryHostinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryHostinstance.
-
decode
Decode theEPPRegistryHostattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryHostfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryHost.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryHost - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryHostcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getInternal
Gets the internal host attributes.- Returns:
- the internal host attributes
-
setInternal
Sets the internal host attributes.- Parameters:
aInternal- the internal host attributes
-
getExternal
Gets the external host attributes.- Returns:
- the external host attributes
-
setExternal
Sets the external host attributes.- Parameters:
aExternal- the external host attributes
-
hasNameRegex
public boolean hasNameRegex()Is the host name regular expression defined?- Returns:
trueif the host name regular expression is defined;falseotherwise.
-
getNameRegex
Get the regular expression that host name must follow.- Returns:
- Regular expression if defined;
nullotherwise.
-
setNameRegex
Set the regular expression that host name must follow.- Parameters:
aNameRegex- Regular expression for the host name. Set tonullto unset it.
-
hasMaxCheckHost
public boolean hasMaxCheckHost()Is the maximum number of host names defined?- Returns:
trueif the maximum number of host names is defined;falseotherwise.
-
getMaxCheckHost
Gets maximum number of host names that can be included in a host check command.- Returns:
- maximum number of host names that can be included in a host check
command if defined;
nullotherwise.
-
setMaxCheckHost
Sets maximum number of host names that can be included in a host check command.- Parameters:
aMaxCheckHost- maximum number of host names that can be included in a host check command. Set tonullto unset the value.
-
getSupportedStatus
Gets a set of supported host statuses defined in RFC 5732.- Returns:
- set of supported host statuses defined in RFC 5732
-
setSupportedStatus
Sets a set of supported host statuses defined in RFC 5732.- Parameters:
aSupportedStatus- set of supported host statuses defined in RFC 5732
-
hasInvalidIPs
public boolean hasInvalidIPs()Is the invalid IPs defined?- Returns:
trueif the invalid IPs is defined;falseotherwise.
-
getInvalidIPs
Gets the invalid IP address URIs.- Returns:
Listof invalid IP address URIs
-
setInvalidIPs
Sets the invalid IP address URIs.- Parameters:
aInvalidIPs-Listof invaild IP address URIStringvalues.
-
addInvalidIP
Adds one invalid IP address URI to the list.- Parameters:
aInvalidIP- supported algorithm as described in section 2.1.3 of RFC 4034
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-