Package com.verisign.epp.codec.registry
Class EPPRegistryHost
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistryHost
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryHost extends java.lang.Object implements EPPCodecComponent
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> - Zero or more <registry:nameRegex> elements
that define the regular expressions used to validate the host name value. Use
getNameRegex()andsetNameRegex(List)to get and set the element. UseaddNameRegex(EPPRegistryRegex)to add one name regex to an existing list. - <registry:maxCheckHost> - The 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:customData> - The OPTIONAL set of custom data using key, value pairs.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_AUTH_INFO_REGEXXML Element Name ofauthInfoRegexattribute.static java.lang.StringELM_CUSTOM_DATAXML Element Name ofcustomDataattribute.static java.lang.StringELM_MAX_CHECKXML Element Name ofmaxCheckHostattribute.static java.lang.StringELM_NAMEXML Element Name ofEPPRegistryHostroot element.static java.lang.StringELM_REGEXXML Element Name ofnameRegexattribute.
-
Constructor Summary
Constructors Constructor Description EPPRegistryHost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNameRegex(EPPRegistryRegex regex)Adds one host name regular expression to the existingList.java.lang.Objectclone()CloneEPPRegistryHost.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryHostattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryHostinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryHostcompare.EPPRegistryCustomDatagetCustomData()Gets set of custom data using key, value pairs.EPPRegistryExternalHostgetExternal()Gets the external host attributes.EPPRegistryInternalHostgetInternal()Gets the internal host attributes.java.lang.IntegergetMaxCheckHost()Gets maximum number of host names that can be included in a host check command.java.util.ListgetNameRegex()Gets host name regular expressions.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPRegistrySupportedStatusgetSupportedStatus()Gets a set of supported host statuses defined in RFC 5732.voidsetCustomData(EPPRegistryCustomData customData)Sets set of custom data using key, value pairs.voidsetExternal(EPPRegistryExternalHost external)Sets the external host attributes.voidsetInternal(EPPRegistryInternalHost internal)Sets the internal host attributes.voidsetMaxCheckHost(java.lang.Integer maxCheckHost)Sets maximum number of host names that can be included in a host check command.voidsetNameRegex(java.util.List nameRegex)Sets host name regular expressions.voidsetSupportedStatus(EPPRegistrySupportedStatus supportedStatus)Sets a set of supported host statuses defined in RFC 5732.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistryHostroot element.- See Also:
- Constant Field Values
-
ELM_REGEX
public static final java.lang.String ELM_REGEX
XML Element Name ofnameRegexattribute.- See Also:
- Constant Field Values
-
ELM_MAX_CHECK
public static final java.lang.String ELM_MAX_CHECK
XML Element Name ofmaxCheckHostattribute.- See Also:
- Constant Field Values
-
ELM_CUSTOM_DATA
public static final java.lang.String ELM_CUSTOM_DATA
XML Element Name ofcustomDataattribute.- See Also:
- Constant Field Values
-
ELM_AUTH_INFO_REGEX
public static final java.lang.String ELM_AUTH_INFO_REGEX
XML Element Name ofauthInfoRegexattribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryHost.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryHost - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryHostcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryHostinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getInternal
public EPPRegistryInternalHost getInternal()
Gets the internal host attributes.- Returns:
- the internal host attributes
-
setInternal
public void setInternal(EPPRegistryInternalHost internal)
Sets the internal host attributes.- Parameters:
internal- the internal host attributes
-
getExternal
public EPPRegistryExternalHost getExternal()
Gets the external host attributes.- Returns:
- the external host attributes
-
setExternal
public void setExternal(EPPRegistryExternalHost external)
Sets the external host attributes.- Parameters:
external- the external host attributes
-
getNameRegex
public java.util.List getNameRegex()
Gets host name regular expressions.- Returns:
Listof name regular expressions
-
setNameRegex
public void setNameRegex(java.util.List nameRegex)
Sets host name regular expressions.- Parameters:
nameRegex-Listof name regular expressions
-
addNameRegex
public void addNameRegex(EPPRegistryRegex regex)
Adds one host name regular expression to the existingList.- Parameters:
regex- one name regular expressions
-
getMaxCheckHost
public java.lang.Integer 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
-
setMaxCheckHost
public void setMaxCheckHost(java.lang.Integer maxCheckHost)
Sets maximum number of host names that can be included in a host check command.- Parameters:
maxCheckHost- maximum number of host names that can be included in a host check command
-
getCustomData
public EPPRegistryCustomData getCustomData()
Gets set of custom data using key, value pairs.- Returns:
- instance of
EPPRegistryCustomDatathat gives users the ability to specify custom data with key/value pairs
-
setCustomData
public void setCustomData(EPPRegistryCustomData customData)
Sets set of custom data using key, value pairs.- Parameters:
customData- instance ofEPPRegistryCustomDatathat gives users the ability to specify custom data with key/value pairs
-
getSupportedStatus
public EPPRegistrySupportedStatus getSupportedStatus()
Gets a set of supported host statuses defined in RFC 5732.- Returns:
- set of supported host statuses defined in RFC 5732
-
setSupportedStatus
public void setSupportedStatus(EPPRegistrySupportedStatus supportedStatus)
Sets a set of supported host statuses defined in RFC 5732.- Parameters:
supportedStatus- set of supported host statuses defined in RFC 5732
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-