public class EPPNameVerificationInfoCmd extends EPPInfoCmd
EPPNameVerificationInfoResp
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
EPPNameVerificationInfoCmd.Type
Information type with one of the following values:
INPUT - Get the input parameters provided in executing
the verification associated with the code.
SIGNED_CODE - Get the signed code associated with the
code.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPNameVerificationInfoCmd . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPNameVerificationInfoCmd . |
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 and Description |
---|
EPPNameVerificationInfoCmd()
EPPNameVerificationInfoCmd default constructor. |
EPPNameVerificationInfoCmd(java.lang.String aTransId)
EPPNameVerificationInfoCmd constructor that takes just the
client transaction id. |
EPPNameVerificationInfoCmd(java.lang.String aTransId,
java.lang.String aCode)
EPPNameVerificationInfoCmd constructor that takes the
required verification code value. |
EPPNameVerificationInfoCmd(java.lang.String aTransId,
java.lang.String aCode,
EPPNameVerificationInfoCmd.Type aType)
EPPNameVerificationInfoCmd constructor that takes all of the
required attributes. |
EPPNameVerificationInfoCmd(java.lang.String aTransId,
java.lang.String aCode,
EPPNameVerificationInfoCmd.Type aType,
EPPAuthInfo aAuthInfo)
EPPNameVerificationInfoCmd constructor that takes all of the
required attributes.}. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPNameVerificationInfoCmd . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPNameVerificationInfoCmd attributes from the
aElement DOM Element tree. |
protected org.w3c.dom.Element |
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPNameVerificationInfoCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPNameVerificationInfoCmd with this
instance. |
EPPAuthInfo |
getAuthInfo()
Gets the OPTIONAL authorization information for the Name Verification (NV)
object.
|
java.lang.String |
getCode()
Gets the verification code value.
|
EPPNameVerificationInfoCmd.Type |
getInfoType()
Gets the input type defined by the
Type enumeration. |
java.lang.String |
getNamespace()
Gets the EPP command Namespace associated with
EPPNameVerificationInfoCmd . |
void |
setAuthInfo(EPPAuthInfo aAuthInfo)
Sets the authorization information for the Name Verification (NV) object.
|
void |
setCode(java.lang.String aCode)
Sets the verification code value.
|
void |
setInfoType(EPPNameVerificationInfoCmd.Type aType)
Sets the input type using one of the
Type enumeration values. |
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
doGenDecode, doGenEncode, getType
addExtension, decode, encode, findDuplicateExtNamespaces, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
public static final java.lang.String ELM_LOCALNAME
EPPNameVerificationInfoCmd
.public static final java.lang.String ELM_NAME
EPPNameVerificationInfoCmd
.public EPPNameVerificationInfoCmd()
EPPNameVerificationInfoCmd
default constructor.public EPPNameVerificationInfoCmd(java.lang.String aTransId)
EPPNameVerificationInfoCmd
constructor that takes just the
client transaction id.aTransId
- Client transaction id. Set to null
of no client
transaction id should be used.public EPPNameVerificationInfoCmd(java.lang.String aTransId, java.lang.String aCode)
EPPNameVerificationInfoCmd
constructor that takes the
required verification code value. The default info type is set to
Type.SIGNED_CODE
.aTransId
- Client transaction id. Set to null
of no client
transaction id should be used.aCode
- Verification codepublic EPPNameVerificationInfoCmd(java.lang.String aTransId, java.lang.String aCode, EPPNameVerificationInfoCmd.Type aType)
EPPNameVerificationInfoCmd
constructor that takes all of the
required attributes.aTransId
- Client transaction id. Set to null
of no client
transaction id should be used.aCode
- Verification codeaType
- Information typepublic EPPNameVerificationInfoCmd(java.lang.String aTransId, java.lang.String aCode, EPPNameVerificationInfoCmd.Type aType, EPPAuthInfo aAuthInfo)
EPPNameVerificationInfoCmd
constructor that takes all of the
required attributes.}.aTransId
- Client transaction id. Set to null
of no client
transaction id should be used.aCode
- Verification codeaType
- Information typeaAuthInfo
- Authorization information for Name Verification (NV) object.public java.lang.String getNamespace()
EPPNameVerificationInfoCmd
.getNamespace
in interface EPPCodecComponent
getNamespace
in interface EPPMessage
getNamespace
in class EPPCommand
EPPNameVerificationMapFactory.NS
public java.lang.String getCode()
public void setCode(java.lang.String aCode)
aCode
- Verification code valuepublic EPPNameVerificationInfoCmd.Type getInfoType()
Type
enumeration.public void setInfoType(EPPNameVerificationInfoCmd.Type aType)
Type
enumeration values.aType
- Input typepublic EPPAuthInfo getAuthInfo()
null
otherwise.public void setAuthInfo(EPPAuthInfo aAuthInfo)
aAuthInfo
- Authorization information of NV object.protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPNameVerificationInfoCmd
instance.doEncode
in class EPPInfoCmd
aDocument
- DOM Document that is being built. Used as an Element factory.EPPNameVerificationInfoCmd
instance.EPPEncodeException
- Unable to encode EPPNameVerificationInfoCmd
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPNameVerificationInfoCmd
attributes from the
aElement DOM Element tree.doDecode
in class EPPInfoCmd
aElement
- Root DOM Element to decode
EPPNameVerificationInfoCmd
from.EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPNameVerificationInfoCmd
with this
instance.equals
in class EPPInfoCmd
aObject
- Object to compare with.true
if this object is the same as the aObject argument;
false
otherwise.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPNameVerificationInfoCmd
.clone
in interface EPPCodecComponent
clone
in class EPPCommand
EPPNameVerificationInfoCmd
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class EPPCommand
String
if successful; ERROR
otherwise.