Package com.verisign.epp.codec.nv
Class EPPNameVerificationCheckResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.nv.EPPNameVerificationCheckResp
-
- All Implemented Interfaces:
EPPCodecComponent
,EPPMessage
,java.io.Serializable
,java.lang.Cloneable
public class EPPNameVerificationCheckResp extends EPPResponse
Provides the response to aEPPNameVerificationCheckCmd
that indicates whether or not the labels can be used to create a Domain Name Verification (DNV) object.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
Constant for the name verification check response-
Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED
-
-
Constructor Summary
Constructors Constructor Description EPPNameVerificationCheckResp()
EPPNameVerificationCheckResp
default constructor.EPPNameVerificationCheckResp(EPPTransId aTransId)
EPPNameVerificationCheckResp
constructor that sets the transaction identifier.EPPNameVerificationCheckResp(EPPTransId aTransId, EPPNameVerificationCheckResult aResult)
EPPNameVerificationCheckResp
constructor that will set the result of an individual label.EPPNameVerificationCheckResp(EPPTransId aTransId, java.util.List<EPPNameVerificationCheckResult> aResults)
EPPNameVerificationCheckResp
constructor that will set the result of multiple labels.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResult(EPPNameVerificationCheckResult aResult)
Adds a result to the list of check results.java.lang.Object
clone()
CloneEPPNameVerificationCheckResp
.protected void
doDecode(org.w3c.dom.Element aElement)
Decode theEPPNameVerificationCheckResp
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 theEPPNameVerificationCheckResp
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationCheckResp
with this instance.java.util.List<EPPNameVerificationCheckResult>
getCheckResults()
Get the results of aEPPNameVerificationCheckResp
Response.java.lang.String
getNamespace()
Get the EPP command Namespace associated withEPPNameVerificationCheckResp
.java.lang.String
getType()
Get the EPP response type associated withEPPNameVerificationCheckResp
.void
setCheckResults(java.util.List<EPPNameVerificationCheckResult> aResults)
Set the results of aEPPNameVerificationCheckResp
Response.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.-
Methods inherited from class com.verisign.epp.codec.gen.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the name verification check response- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPNameVerificationCheckResp
public EPPNameVerificationCheckResp()
EPPNameVerificationCheckResp
default constructor.
-
EPPNameVerificationCheckResp
public EPPNameVerificationCheckResp(EPPTransId aTransId)
EPPNameVerificationCheckResp
constructor that sets the transaction identifier.- Parameters:
aTransId
- Transaction Id associated with response.
-
EPPNameVerificationCheckResp
public EPPNameVerificationCheckResp(EPPTransId aTransId, EPPNameVerificationCheckResult aResult)
EPPNameVerificationCheckResp
constructor that will set the result of an individual label.- Parameters:
aTransId
- Transaction Id associated with response.aResult
- Result of a single label.
-
EPPNameVerificationCheckResp
public EPPNameVerificationCheckResp(EPPTransId aTransId, java.util.List<EPPNameVerificationCheckResult> aResults)
EPPNameVerificationCheckResp
constructor that will set the result of multiple labels.- Parameters:
aTransId
- Transaction Id associated with response.aResults
- List ofEPPNameVerificationCheckResult
instances.
-
-
Method Detail
-
getType
public java.lang.String getType()
Get the EPP response type associated withEPPNameVerificationCheckResp
.- Overrides:
getType
in classEPPResponse
- Returns:
- EPPNameVerificationCheckResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPNameVerificationCheckResp
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Overrides:
getNamespace
in classEPPResponse
- Returns:
EPPNameVerificationMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationCheckResp
with this instance.- Overrides:
equals
in classEPPResponse
- Parameters:
aObject
- Object to compare with.- Returns:
true
if equal;false
otherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPNameVerificationCheckResp
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classEPPResponse
- Returns:
- clone of
EPPNameVerificationCheckResp
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPResponse
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
addResult
public void addResult(EPPNameVerificationCheckResult aResult)
Adds a result to the list of check results.- Parameters:
aResult
- Result to add.
-
setCheckResults
public void setCheckResults(java.util.List<EPPNameVerificationCheckResult> aResults)
Set the results of aEPPNameVerificationCheckResp
Response. There is oneEPPNameVerificationCheckResult
instance inaResults
for each label requested in theEPPNameVerificationCheckCmd
Command.- Parameters:
aResults
- List ofEPPNameVerificationCheckResult
instances.
-
getCheckResults
public java.util.List<EPPNameVerificationCheckResult> getCheckResults()
Get the results of aEPPNameVerificationCheckResp
Response.- Returns:
- List of
EPPNameVerificationCheckResult
instances.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPNameVerificationCheckResp
instance.- Overrides:
doEncode
in classEPPResponse
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPNameVerificationCheckResp
instance. - Throws:
EPPEncodeException
- Unable to encodeEPPNameVerificationCheckResp
instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPNameVerificationCheckResp
attributes from the aElement DOM Element tree.- Overrides:
doDecode
in classEPPResponse
- Parameters:
aElement
- Root DOM Element to decodeEPPNameVerificationCheckResp
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
-