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(List) to get and set the
element. Use addNameRegex(EPPRegistryRegex) to add one name regex to
an existing list.getMaxCheckHost() and
setMaxCheckHost(Integer) to get and set the element.getSupportedStatus() and
setSupportedStatus(EPPRegistrySupportedStatus) to get and set the
element.| 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_CUSTOM_DATA
XML Element Name of
customData attribute. |
static java.lang.String |
ELM_MAX_CHECK
XML Element Name of
maxCheckHost attribute. |
static java.lang.String |
ELM_NAME
XML Element Name of
EPPRegistryHost root element. |
static java.lang.String |
ELM_REGEX
XML Element Name of
nameRegex attribute. |
| Constructor and Description |
|---|
EPPRegistryHost() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNameRegex(EPPRegistryRegex regex)
Adds one host name regular expression to the existing
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. |
EPPRegistryCustomData |
getCustomData()
Gets set of custom data using key, value pairs.
|
EPPRegistryExternalHost |
getExternal()
Gets the external host attributes.
|
EPPRegistryInternalHost |
getInternal()
Gets the internal host attributes.
|
java.lang.Integer |
getMaxCheckHost()
Gets maximum number of host names that can be included in a host check
command.
|
java.util.List |
getNameRegex()
Gets host name regular expressions.
|
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.
|
void |
setCustomData(EPPRegistryCustomData customData)
Sets set of custom data using key, value pairs.
|
void |
setExternal(EPPRegistryExternalHost external)
Sets the external host attributes.
|
void |
setInternal(EPPRegistryInternalHost internal)
Sets the internal host attributes.
|
void |
setMaxCheckHost(java.lang.Integer maxCheckHost)
Sets maximum number of host names that can be included in a host check
command.
|
void |
setNameRegex(java.util.List nameRegex)
Sets host name regular expressions.
|
void |
setSupportedStatus(EPPRegistrySupportedStatus supportedStatus)
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_NAME
EPPRegistryHost root element.public static final java.lang.String ELM_REGEX
nameRegex attribute.public static final java.lang.String ELM_MAX_CHECK
maxCheckHost attribute.public static final java.lang.String ELM_CUSTOM_DATA
customData attribute.public static final java.lang.String ELM_AUTH_INFO_REGEX
authInfoRegex 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 internal)
internal - the internal host attributespublic EPPRegistryExternalHost getExternal()
public void setExternal(EPPRegistryExternalHost external)
external - the external host attributespublic java.util.List getNameRegex()
List of name regular expressionspublic void setNameRegex(java.util.List nameRegex)
nameRegex - List of name regular expressionspublic void addNameRegex(EPPRegistryRegex regex)
List.regex - one name regular expressionspublic java.lang.Integer getMaxCheckHost()
public void setMaxCheckHost(java.lang.Integer maxCheckHost)
maxCheckHost - maximum number of host names that can be included in a host
check commandpublic EPPRegistryCustomData getCustomData()
EPPRegistryCustomData that gives users the
ability to specify custom data with key/value pairspublic void setCustomData(EPPRegistryCustomData customData)
customData - instance of EPPRegistryCustomData that gives users the
ability to specify custom data with key/value pairspublic EPPRegistrySupportedStatus getSupportedStatus()
public void setSupportedStatus(EPPRegistrySupportedStatus supportedStatus)
supportedStatus - set of supported host statuses defined in RFC 5732public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.