Package com.verisign.epp.codec.org
Class EPPOrgCheckResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.org.EPPOrgCheckResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents a org <check> response that returns the availability of a
set of client-specified but server-unique org identifiers.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPOrgCheckResp.static final StringXML root tag forEPPOrgCheckResp.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
ConstructorsConstructorDescriptionEPPOrgCheckRespdefault constructor.EPPOrgCheckResp(EPPTransId aTransId) EPPOrgCheckRespconstructor that only takes the transaction identifier.EPPOrgCheckResp(EPPTransId aTransId, EPPOrgCheckResult aResult) EPPOrgCheckRespconstructor that takes an individual result. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCheckResult(EPPOrgCheckResult aResult) Append a result to the list of results.clone()CloneEPPOrgCheckResp.protected voidDecode theEPPOrgCheckRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPOrgCheckRespinstance.booleanCompare an instance ofEPPOrgCheckRespwith this instance.Gets the list of results.Get the EPP command Namespace associated withEPPOrgCheckResp.getType()Get the EPP response type associated withEPPOrgCheckResp.booleanAre any results defined in the list of results?voidsetCheckResult(EPPOrgCheckResult aResult) Set an individual check result.voidsetCheckResults(List<EPPOrgCheckResult> aResults) Sets the list of results.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation 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 Details
-
ELM_LOCALNAME
XML local name forEPPOrgCheckResp.- See Also:
-
ELM_NAME
XML root tag forEPPOrgCheckResp.- See Also:
-
-
Constructor Details
-
EPPOrgCheckResp
public EPPOrgCheckResp()EPPOrgCheckRespdefault constructor. It will set results attribute to an emptyList. -
EPPOrgCheckResp
EPPOrgCheckRespconstructor that only takes the transaction identifier.- Parameters:
aTransId- transaction Id associated with response
-
EPPOrgCheckResp
EPPOrgCheckRespconstructor that takes an individual result. Add more tables usingaddCheckResult(EPPOrgCheckResult).- Parameters:
aTransId- transaction Id associated with responseaResult- An individual check result
-
-
Method Details
-
hasCheckResults
public boolean hasCheckResults()Are any results defined in the list of results?- Returns:
trueif there is at least one result defined;falseotherwise.
-
getCheckResults
Gets the list of results.- Returns:
Listof results
-
setCheckResults
Sets the list of results.- Parameters:
aResults-Listof results
-
setCheckResult
Set an individual check result. This method clears the existing list of check results.- Parameters:
aResult- An individual check result.
-
addCheckResult
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
Encode a DOM Element tree from the attributes of theEPPOrgCheckRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPOrgCheckRespinstance. - Throws:
EPPEncodeException- Unable to encodeEPPOrgCheckRespinstance.
-
doDecode
Decode theEPPOrgCheckRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPOrgCheckRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getType
Get the EPP response type associated withEPPOrgCheckResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPOrgCheckResp.ELM_NAME
-
getNamespace
Get the EPP command Namespace associated withEPPOrgCheckResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPRegistryMapFactory.NS
-
equals
Compare an instance ofEPPOrgCheckRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
CloneEPPOrgCheckResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPOrgCheckResp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-