Package com.verisign.epp.codec.host
Class EPPHostCheckCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCheckCmd
com.verisign.epp.codec.host.EPPHostCheckCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Host <check> command, which is used to determine if a
host name is known to the server. The <host:check> element MUST contain
the following child elements:
- One or more <host:name> elements that contain the fully qualified
name of the queried hosts. Use
getNamesandsetNamesto get and set the elements. UsesetNamesto set an individual name.
EPPHostCheckResp is the concrete EPPReponse associated with
EPPHostCheckCmd. - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPHostCheckCmd.static final StringXML Element Name ofEPPHostCheckCmdroot element.Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE -
Constructor Summary
ConstructorsConstructorDescriptionEPPHostCheckCmddefault constructor.EPPHostCheckCmd(String aTransId, String aName) EPPHostCheckCmdconstructor that will check an individual host name.EPPHostCheckCmd(String aTransId, Vector<String> aNames) EPPHostCheckCmdconstructor that will check a list of host names. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPHostCheckCmd.protected voidDecode theEPPHostCheckCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPHostCheckCmdinstance.booleanCompare an instance ofEPPHostCheckCmdwith this instance.getKey()Gets the key for the host object, which is the host name.getNames()Gets host names to check.Gets the EPP command Namespace associated withEPPHostCheckCmd.voidSets host name to check.voidSets host names to check.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPCheckCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPHostCheckCmd.- See Also:
-
ELM_NAME
XML Element Name ofEPPHostCheckCmdroot element.- See Also:
-
-
Constructor Details
-
EPPHostCheckCmd
public EPPHostCheckCmd()EPPHostCheckCmddefault constructor. It will set the names attribute to an emptyVector. -
EPPHostCheckCmd
EPPHostCheckCmdconstructor that will check an individual host name.- Parameters:
aTransId- Transaction Id associated with command.aName- Host name to check
-
EPPHostCheckCmd
EPPHostCheckCmdconstructor that will check a list of host names.- Parameters:
aTransId- Transaction Id associated with command.aNames-Vectorof host nameStringinstances.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPHostCheckCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPHostMapFactory.NS
-
getKey
Gets the key for the host object, which is the host name.- Overrides:
getKeyin classEPPCommand- Returns:
- The host name if set with a single value;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPHostCheckCmdinstance.- Specified by:
doEncodein classEPPCheckCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPHostCheckCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPHostCheckCmdinstance.
-
doDecode
Decode theEPPHostCheckCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCheckCmd- Parameters:
aElement- Root DOM Element to decodeEPPHostCheckCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPHostCheckCmdwith this instance.- Overrides:
equalsin classEPPCheckCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise
-
clone
CloneEPPHostCheckCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPHostCheckCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
setName
Sets host name to check.- Parameters:
aName- Name to check.
-
getNames
Gets host names to check.- Returns:
- Vector of host name
String's.
-
setNames
Sets host names to check.- Parameters:
aNames- Names to check.
-