com.verisign.epp.codec.reseller
Class EPPResellerCheckResp

java.lang.Object
  extended by com.verisign.epp.codec.gen.EPPResponse
      extended by com.verisign.epp.codec.reseller.EPPResellerCheckResp
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, java.io.Serializable, java.lang.Cloneable

public class EPPResellerCheckResp
extends EPPResponse

Represents a reseller <check> response that returns the availability of a set of client-specified but server-unique reseller identifiers.

See Also:
EPPResellerCheckCmd, Serialized Form

Field Summary
static java.lang.String ELM_LOCALNAME
          XML local name for EPPResellerCheckResp.
static java.lang.String ELM_NAME
          XML root tag for EPPResellerCheckCmd.
 
Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED
 
Constructor Summary
EPPResellerCheckResp()
          EPPResellerCheckResp default constructor.
EPPResellerCheckResp(EPPTransId aTransId)
          EPPResellerCheckResp constructor that only takes the transaction identifier.
EPPResellerCheckResp(EPPTransId aTransId, EPPResellerCheckResult aResult)
          EPPResellerCheckResp constructor that takes an individual result.
 
Method Summary
 void addCheckResult(EPPResellerCheckResult aResult)
          Append a result to the list of results.
 java.lang.Object clone()
          Clone EPPResellerCheckResp.
protected  void doDecode(org.w3c.dom.Element aElement)
          Decode the EPPResellerCheckResp 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 EPPResellerCheckResp instance.
 boolean equals(java.lang.Object aObject)
          Compare an instance of EPPResellerCheckResp with this instance.
 java.util.List<EPPResellerCheckResult> getCheckResults()
          Get the list of results.
 java.lang.String getNamespace()
          Get the EPP command Namespace associated with EPPResellerCheckResp.
 java.lang.String getType()
          Get the EPP response type associated with EPPResellerCheckResp.
 boolean hasCheckResults()
          Are any results defined in the list of results?
 void setCheckResult(EPPResellerCheckResult aResult)
          Set an individual check result.
 void setCheckResults(java.util.List<EPPResellerCheckResult> aResults)
          Set the list of results.
 java.lang.String toString()
          Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
 
Methods inherited from class com.verisign.epp.codec.gen.EPPResponse
addExtension, decode, encode, 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
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELM_LOCALNAME

public static final java.lang.String ELM_LOCALNAME
XML local name for EPPResellerCheckResp.

See Also:
Constant Field Values

ELM_NAME

public static final java.lang.String ELM_NAME
XML root tag for EPPResellerCheckCmd.

See Also:
Constant Field Values
Constructor Detail

EPPResellerCheckResp

public EPPResellerCheckResp()
EPPResellerCheckResp default constructor. It will set results attribute to an empty List.


EPPResellerCheckResp

public EPPResellerCheckResp(EPPTransId aTransId)
EPPResellerCheckResp constructor that only takes the transaction identifier.

Parameters:
aTransId - transaction Id associated with response

EPPResellerCheckResp

public EPPResellerCheckResp(EPPTransId aTransId,
                            EPPResellerCheckResult aResult)
EPPResellerCheckResp constructor that takes an individual result. Add more tables using addCheckResult(EPPResellerCheckResult).

Parameters:
aTransId - transaction Id associated with response
aResult - An individual check result
Method Detail

hasCheckResults

public boolean hasCheckResults()
Are any results defined in the list of results?

Returns:
true if there is at least one result defined; false otherwise.

getCheckResults

public java.util.List<EPPResellerCheckResult> getCheckResults()
Get the list of results.

Returns:
List of results

setCheckResults

public void setCheckResults(java.util.List<EPPResellerCheckResult> aResults)
Set the list of results.

Parameters:
aResults - List of results

setCheckResult

public void setCheckResult(EPPResellerCheckResult aResult)
Set an individual check result. This method clears the existing list of check results.

Parameters:
aResult - An individual check result.

addCheckResult

public void addCheckResult(EPPResellerCheckResult aResult)
Append a result to the list of results. This method does NOT clear the existing list of results.

Parameters:
aResult - A result to add to the list of results

doEncode

protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument)
                                throws EPPEncodeException
Encode a DOM Element tree from the attributes of the EPPResellerCheckResp instance.

Overrides:
doEncode in class EPPResponse
Parameters:
aDocument - DOM Document that is being built. Used as an Element factory.
Returns:
Element Root DOM Element representing the EPPResellerCheckResp instance.
Throws:
EPPEncodeException - Unable to encode EPPResellerCheckResp instance.

doDecode

protected void doDecode(org.w3c.dom.Element aElement)
                 throws EPPDecodeException
Decode the EPPResellerCheckResp attributes from the aElement DOM Element tree.

Overrides:
doDecode in class EPPResponse
Parameters:
aElement - Root DOM Element to decode EPPResellerCheckResp from.
Throws:
EPPDecodeException - Unable to decode aElement

getType

public java.lang.String getType()
Get the EPP response type associated with EPPResellerCheckResp.

Overrides:
getType in class EPPResponse
Returns:
EPPResellerCheckResp.ELM_NAME

getNamespace

public java.lang.String getNamespace()
Get the EPP command Namespace associated with EPPResellerCheckResp.

Specified by:
getNamespace in interface EPPMessage
Overrides:
getNamespace in class EPPResponse
Returns:
EPPRegistryMapFactory.NS

equals

public boolean equals(java.lang.Object aObject)
Compare an instance of EPPResellerCheckResp with this instance.

Overrides:
equals in class EPPResponse
Parameters:
aObject - Object to compare with.
Returns:
true if this object is the same as the aObject argument; false otherwise

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone EPPResellerCheckResp.

Specified by:
clone in interface EPPCodecComponent
Overrides:
clone in class EPPResponse
Returns:
clone of EPPResellerCheckResp
Throws:
java.lang.CloneNotSupportedException - standard Object.clone exception

toString

public java.lang.String toString()
Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.

Overrides:
toString in class EPPResponse
Returns:
Indented XML String if successful; ERROR otherwise.


Copyright © VeriSign Inc. All Rights Reserved.