public class EPPRegistryHost extends java.lang.Object implements EPPCodecComponent
getInternal() and
setInternal(EPPRegistryInternalHost) to get and set the element.
getExternal() and setExternal(EPPRegistryExternalHost) to
get and set the element.getNameRegex() and
setNameRegex(EPPRegistryRegex) to get and set the element.getMaxCheckHost() and
setMaxCheckHost(Integer) to get and set the element.getSupportedStatus() and
setSupportedStatus(EPPRegistrySupportedStatus) to get and set the
element.getInvalidIPs() and setInvalidIPs(List) to get and set
these elements.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_AUTH_INFO_REGEX
XML Element Name of
authInfoRegex attribute. |
static java.lang.String |
ELM_INVALID_IP
XML Element Name of
invalidIPs attribute. |
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryHost. |
static java.lang.String |
ELM_MAX_CHECK
XML Element Name of
maxCheckHost attribute. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryHost. |
static java.lang.String |
ELM_NAME_REGEX
XML Element Name of
nameRegex attribute. |
| Constructor and Description |
|---|
EPPRegistryHost() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInvalidIP(java.lang.String aInvalidIP)
Adds one invalid IP address URI to the list.
|
java.lang.Object |
clone()
Clone
EPPRegistryHost. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryHost attributes from the aElement DOM
Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPRegistryHost instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryHost compare. |
EPPRegistryExternalHost |
getExternal()
Gets the external host attributes.
|
EPPRegistryInternalHost |
getInternal()
Gets the internal host attributes.
|
java.util.List<java.lang.String> |
getInvalidIPs()
Gets the invalid IP address URIs.
|
java.lang.Integer |
getMaxCheckHost()
Gets maximum number of host names that can be included in a host check
command.
|
EPPRegistryRegex |
getNameRegex()
Get the regular expression that host name must follow.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
EPPRegistrySupportedStatus |
getSupportedStatus()
Gets a set of supported host statuses defined in RFC 5732.
|
boolean |
hasInvalidIPs()
Is the invalid IPs defined?
|
boolean |
hasMaxCheckHost()
Is the maximum number of host names defined?
|
boolean |
hasNameRegex()
Is the host name regular expression defined?
|
void |
setExternal(EPPRegistryExternalHost aExternal)
Sets the external host attributes.
|
void |
setInternal(EPPRegistryInternalHost aInternal)
Sets the internal host attributes.
|
void |
setInvalidIPs(java.util.List<java.lang.String> aInvalidIPs)
Sets the invalid IP address URIs.
|
void |
setMaxCheckHost(java.lang.Integer aMaxCheckHost)
Sets maximum number of host names that can be included in a host check
command.
|
void |
setNameRegex(EPPRegistryRegex aNameRegex)
Set the regular expression that host name must follow.
|
void |
setSupportedStatus(EPPRegistrySupportedStatus aSupportedStatus)
Sets a set of supported host statuses defined in RFC 5732.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
EPPRegistryHost.public static final java.lang.String ELM_NAME
EPPRegistryHost.public static final java.lang.String ELM_NAME_REGEX
nameRegex attribute.public static final java.lang.String ELM_MAX_CHECK
maxCheckHost attribute.public static final java.lang.String ELM_AUTH_INFO_REGEX
authInfoRegex attribute.public static final java.lang.String ELM_INVALID_IP
invalidIPs attribute.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryHost instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPRegistryHost
instance.EPPEncodeException - - Unable to encode EPPRegistryHost instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryHost attributes from the aElement DOM
Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPRegistryHost from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryHost.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRegistryHostjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryHost compare.equals in class java.lang.ObjectaObject - EPPRegistryHost instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public EPPRegistryInternalHost getInternal()
public void setInternal(EPPRegistryInternalHost aInternal)
aInternal - the internal host attributespublic EPPRegistryExternalHost getExternal()
public void setExternal(EPPRegistryExternalHost aExternal)
aExternal - the external host attributespublic boolean hasNameRegex()
true if the host name regular expression is defined;
false otherwise.public EPPRegistryRegex getNameRegex()
null otherwise.public void setNameRegex(EPPRegistryRegex aNameRegex)
aNameRegex - Regular expression for the host name. Set to null to
unset it.public boolean hasMaxCheckHost()
true if the maximum number of host names is defined;
false otherwise.public java.lang.Integer getMaxCheckHost()
null otherwise.public void setMaxCheckHost(java.lang.Integer aMaxCheckHost)
aMaxCheckHost - maximum number of host names that can be included in a host
check command. Set to null to unset the value.public EPPRegistrySupportedStatus getSupportedStatus()
public void setSupportedStatus(EPPRegistrySupportedStatus aSupportedStatus)
aSupportedStatus - set of supported host statuses defined in RFC 5732public boolean hasInvalidIPs()
true if the invalid IPs is defined; false
otherwise.public java.util.List<java.lang.String> getInvalidIPs()
List of invalid IP address URIspublic void setInvalidIPs(java.util.List<java.lang.String> aInvalidIPs)
aInvalidIPs - List of invaild IP address URI String values.public void addInvalidIP(java.lang.String aInvalidIP)
aInvalidIP - supported algorithm as described in section 2.1.3 of RFC 4034public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.