Package com.verisign.epp.codec.contact
Class EPPContactTransferCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPTransferCmd
com.verisign.epp.codec.contact.EPPContactTransferCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPP Contact <transfer> command. The EPP <transfer>
command provides a query operation that allows a client to determine
real-time status of pending and completed transfer requests. In addition
to the standard EPP command elements, the <transfer> command MUST
contain an "op"; attribute with value "query", and a
<contact:transfer> element that identifies the contact namespace and
the location of the contact schema. The <contact:transfer> element
MUST contain the following child elements:
-
A <contact:id> element that contains the server-unique identifier of
the contact object to be queried. Use
getIdandsetIdto get and set the element. -
An authorization information as described in [EPP]. Use
getAuthInfoandsetAuthInfoto get and set the element.
EPPContactTransferResp is the concrete EPPReponse
associated with EPPContactTransferCmd. - See Also:
-
Field Summary
Fields inherited from class com.verisign.epp.codec.gen.EPPTransferCmd
opFields inherited from class com.verisign.epp.codec.gen.EPPCommand
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 Summary
ConstructorsConstructorDescriptionAllocates a newEPPContactTransferCmdwith default attribute values.EPPContactTransferCmd(String aTransId, String aOp, String aId) EPPContactTransferCmdconstructor that takes the required attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPContactTransferCmd.protected voidDecode theEPPContactTransferCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPContactTransferCmdinstance.booleanCompare an instance ofEPPContactTransferCmdwith this instance.Get authorization information.getId()Gets the contact id to query.getKey()Gets the key for the contact object, which is the contact identifier.Gets the EPP command Namespace associated withEPPContactTransferCmd.voidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization information.voidSets the contact id to query.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPTransferCmd
doGenDecode, doGenEncode, getOp, getType, setOpMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Constructor Details
-
EPPContactTransferCmd
public EPPContactTransferCmd()Allocates a newEPPContactTransferCmdwith default attribute values. the defaults include the following:
-
id is set to
null -
operation is set to to
null -
authorization information is set to to
null
The id, operation, and auth id must be set before invokingencode. -
id is set to
-
EPPContactTransferCmd
EPPContactTransferCmdconstructor that takes the required attributes as arguments.- Parameters:
aTransId- Transaction Id associated with the command.aOp- One of theEPPCommand.OP_constants associated with the transfer command.aId- Contact id to create.
-
-
Method Details
-
getNamespace
Gets the EPP command Namespace associated withEPPContactTransferCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPContactMapFactory.NS
-
getKey
Gets the key for the contact object, which is the contact identifier.- Overrides:
getKeyin classEPPCommand- Returns:
- The host identifier if set;
nullotherwise.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPContactTransferCmdinstance.- Specified by:
doEncodein classEPPTransferCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPContactTransferCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPContactTransferCmdinstance.
-
doDecode
Decode theEPPContactTransferCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPTransferCmd- Parameters:
aElement- Root DOM Element to decodeEPPContactTransferCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
getId
Gets the contact id to query.- Returns:
- Contact Id if defined;
nullotherwise.
-
setId
Sets the contact id to query.- Parameters:
aId- Contact Id
-
equals
Compare an instance ofEPPContactTransferCmdwith this instance.- Overrides:
equalsin classEPPTransferCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
CloneEPPContactTransferCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPTransferCmd- Returns:
- clone of
EPPContactTransferCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getAuthInfo
Get authorization information.- Returns:
- EPPAuthInfo
-
setAuthInfo
Set authorization information.- Parameters:
newAuthInfo- EPPAuthInfo
-