Package com.verisign.epp.codec.nv
Class EPPNameVerificationCheckCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPCheckCmd
-
- com.verisign.epp.codec.nv.EPPNameVerificationCheckCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPNameVerificationCheckCmd extends EPPCheckCmd
TheEPPNameVerificationCheckCmdis used for the Name Verification (DNV) Check Command, that is used to determine if the domain label's can be used to create a Domain Name Verification object. It provides a hint that allows a client to anticipate the success or failure of create a DNV object using the create command.- See Also:
EPPNameVerificationCheckResp, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the name verification check commandstatic intMAX_LABELSMaximum number of labels to check at once.-
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
Constructors Constructor Description EPPNameVerificationCheckCmd()EPPNameVerificationCheckCmddefault constructor.EPPNameVerificationCheckCmd(java.lang.String aTransId)EPPNameVerificationCheckCmdconstructor with just the client transaction identifier.EPPNameVerificationCheckCmd(java.lang.String aTransId, java.lang.String aName)EPPNameVerificationCheckCmdconstructor that will check an individual label.EPPNameVerificationCheckCmd(java.lang.String aTransId, java.util.List<java.lang.String> aNames)EPPNameVerificationCheckCmdconstructor that will check a list of labels.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLabel(java.lang.String aLabel)Add a label to the list of labels.java.lang.Objectclone()CloneEPPNameVerificationCheckCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPNameVerificationCheckCmdattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPNameVerificationCheckCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPNameVerificationCheckCmdwith this instance.java.util.List<java.lang.String>getLabels()Gets labels to check.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPNameVerificationCheckCmd.voidsetLabel(java.lang.String aName)Sets label to check.voidsetLabels(java.util.List<java.lang.String> aLabels)Sets labels to check.java.lang.StringtoString()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, getType
-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getKey, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Field Detail
-
MAX_LABELS
public static final int MAX_LABELS
Maximum number of labels to check at once.- See Also:
- Constant Field Values
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the name verification check command- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPNameVerificationCheckCmd
public EPPNameVerificationCheckCmd()
EPPNameVerificationCheckCmddefault constructor.
-
EPPNameVerificationCheckCmd
public EPPNameVerificationCheckCmd(java.lang.String aTransId)
EPPNameVerificationCheckCmdconstructor with just the client transaction identifier.- Parameters:
aTransId- Transaction Id associated with command.
-
EPPNameVerificationCheckCmd
public EPPNameVerificationCheckCmd(java.lang.String aTransId, java.lang.String aName)EPPNameVerificationCheckCmdconstructor that will check an individual label.- Parameters:
aTransId- Transaction Id associated with command.aName- Label name to check
-
EPPNameVerificationCheckCmd
public EPPNameVerificationCheckCmd(java.lang.String aTransId, java.util.List<java.lang.String> aNames)EPPNameVerificationCheckCmdconstructor that will check a list of labels.- Parameters:
aTransId- Transaction Id associated with command.aNames-Listof labels to check
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPNameVerificationCheckCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPNameVerificationMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationCheckCmdwith this instance.- Overrides:
equalsin classEPPCheckCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPNameVerificationCheckCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPNameVerificationCheckCmd - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
setLabel
public void setLabel(java.lang.String aName)
Sets label to check.- Parameters:
aName- Label to check.
-
getLabels
public java.util.List<java.lang.String> getLabels()
Gets labels to check.- Returns:
- List of labels
String's.
-
setLabels
public void setLabels(java.util.List<java.lang.String> aLabels)
Sets labels to check.- Parameters:
aLabels- Labels to check.
-
addLabel
public void addLabel(java.lang.String aLabel)
Add a label to the list of labels.- Parameters:
aLabel- Label to add
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPNameVerificationCheckCmdinstance.- Specified by:
doEncodein classEPPCheckCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPNameVerificationCheckCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPNameVerificationCheckCmdinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPNameVerificationCheckCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCheckCmd- Parameters:
aElement- Root DOM Element to decodeEPPNameVerificationCheckCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
-