Package com.verisign.epp.codec.keyrelay
Class EPPKeyRelayInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.keyrelay.EPPKeyRelayInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Key Relay <keyrelay:infData> response that is used in
the key relay poll message. The <keyrelay:infData> element contains the
following child elements:
- A <keyrelay:name> element that contains the fully qualified name of the domain name of the key relay message.
- A <keyrelay:authInfo> element that contains authorization information associated with the domain object. This should an empty element since the authorization information should be only validated by the server to authorize insertion of the key relay poll message.
- One or more REQUIRED <keyRelayData> elements containing data to be relayed.
- A <keyrelay:crDate> element that contains the date and time of the submitted <create> command that inserted the key relay message.
- A <keyrelay:reID> element that contains the identifier of the client that requested the key relay.
- A <keyrelay:acID> element that contains the identifier of the client that SHOULD act upon the key relay.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPKeyRelayInfoResp.static final StringXML Element Name ofEPPKeyRelayInfoResproot element.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
ConstructorsConstructorDescriptionEPPKeyRelayInfoRespdefault constructor.EPPKeyRelayInfoResp(EPPTransId aTransId, String aName) EPPKeyRelayInfoRespconstructor that takes the required attribute values as parameters, except for the key data that can be appended withappendKeyData().EPPKeyRelayInfoResp(EPPTransId aTransId, String aName, List<EPPKeyRelayData> aKeyData) EPPKeyRelayInfoRespconstructor that takes the required attribute values as parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendKeyData(EPPKeyRelayData aKeyData) Appends to theListof key dataEPPKeyRelayDatainstances sent.clone()CloneEPPKeyRelayInfoResp.protected voidDecode theEPPKeyRelayInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPKeyRelayInfoRespinstance.booleanCompare an instance ofEPPKeyRelayInfoRespwith this instance.Gets identifier of the client that SHOULD act upon the key relay.Get authorization informationGets the date and time of the submitted <create> command.Gets the key data.getName()Gets the domain name associated with the key relay messageGets the EPP command namespace associated withEPPKeyRelayInfoResp.Gets identifier of the client that requested the key relay.getType()Gets the EPP response type associated withEPPKeyRelayInfoResp.booleanHas the authorization information been set?booleanIs there key data contained inEPPKeyRelayCreateCmd?voidsetActionId(String aActionId) Sets identifier of the client that SHOULD act upon the key relay.voidsetAuthInfo(EPPAuthInfo aAuthInfo) Set authorization informationvoidsetCreatedDate(Date aDate) Sets the date and time of the submitted <create> command.voidsetKeyData(List<EPPKeyRelayData> aKeyData) Sets theListof key dataEPPKeyRelayDatainstances sent.voidSets the domain name associated with the key relay message.voidsetRequestedId(String aRequestedId) Sets identifier of the client that requested the key relay.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 forEPPKeyRelayInfoResp.- See Also:
-
ELM_NAME
XML Element Name ofEPPKeyRelayInfoResproot element.- See Also:
-
-
Constructor Details
-
EPPKeyRelayInfoResp
public EPPKeyRelayInfoResp()EPPKeyRelayInfoRespdefault constructor. Must call required setter methods before invokingencode, which include:
- name -
setName
- name -
-
EPPKeyRelayInfoResp
EPPKeyRelayInfoRespconstructor that takes the required attribute values as parameters, except for the key data that can be appended withappendKeyData(). The setter methods of the optional attributes can be called before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aName- Domain name
-
EPPKeyRelayInfoResp
EPPKeyRelayInfoRespconstructor that takes the required attribute values as parameters. The setter methods of the optional attributes can be called before invokingencode.- Parameters:
aTransId- Transaction Id associated with response.aName- Domain nameaKeyData- Key data sent *
-
-
Method Details
-
getType
Gets the EPP response type associated withEPPKeyRelayInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPKeyRelayInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPKeyRelayInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPKeyRelayMapFactory.NS
-
equals
Compare an instance ofEPPKeyRelayInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
CloneEPPKeyRelayInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPKeyRelayInfoResp - 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.
-
getName
Gets the domain name associated with the key relay message- Returns:
- Domain Name if defined;
nullotherwise.
-
setName
Sets the domain name associated with the key relay message.- Parameters:
aName- Domain name associated with the key relay message
-
getRequestedId
Gets identifier of the client that requested the key relay.- Returns:
- identifier of the client that requested the key relay if defined;
nullotherwise.
-
setRequestedId
Sets identifier of the client that requested the key relay.- Parameters:
aRequestedId- Identifier of the client that requested the key relay.
-
getActionId
Gets identifier of the client that SHOULD act upon the key relay.- Returns:
- Identifier of the client that SHOULD act upon the key relay if defined;
nullotherwise.
-
setActionId
Sets identifier of the client that SHOULD act upon the key relay.- Parameters:
aActionId- Identifier of the client that SHOULD act upon the key relay.
-
getCreatedDate
Gets the date and time of the submitted <create> command.- Returns:
- Date and time of the submitted <create> command if defined;
nullotherwise.
-
setCreatedDate
Sets the date and time of the submitted <create> command.- Parameters:
aDate- Date and time of the submitted <create> command
-
hasAuthInfo
public boolean hasAuthInfo()Has the authorization information been set?- Returns:
trueif the authorization information has been set;falseotherwise.
-
getAuthInfo
Get authorization information- Returns:
- Authorization information if defined;
nullotherwise;
-
setAuthInfo
Set authorization information- Parameters:
aAuthInfo- EPPAuthInfo
-
hasKeyData
public boolean hasKeyData()Is there key data contained inEPPKeyRelayCreateCmd?- Returns:
trueif list ofEPPKeyRelayDatais notnulland not empty;falseotherwise.
-
getKeyData
Gets the key data.- Returns:
Listof keyDataEPPKeyRelayDatainstances if defined;nullotherwise.
-
setKeyData
Sets theListof key dataEPPKeyRelayDatainstances sent.- Parameters:
aKeyData-ListofEPPKeyRelayDatainstances
-
appendKeyData
Appends to theListof key dataEPPKeyRelayDatainstances sent.- Parameters:
aKeyData-EPPKeyRelayDatainstance
-
doEncode
Encode a DOM Element tree from the attributes of theEPPKeyRelayInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPKeyRelayInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPKeyRelayInfoResp instance.
-
doDecode
Decode theEPPKeyRelayInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPKeyRelayInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-