Class EPPMaintenanceInfoCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPInfoCmd
com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceInfoCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Command used to used to retrieve registry maintenance information.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the info command, which is for an individual maintenance or a list of maintenances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPMaintenanceInfoCmd.static final StringXML root tag forEPPMaintenanceInfoCmd.Fields 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
ConstructorsConstructorDescriptionEPPMaintenanceInfoCmddefault constructor.EPPMaintenanceInfoCmd(String aTransId) EPPMaintenanceInfoCmdconstructor that only takes the client transaction identifier.EPPMaintenanceInfoCmd(String aTransId, String aMaintenanceId) EPPMaintenanceInfoCmdconstructor that takes the transaction identifier and the maintenance identifier, while will automatically set theinfoTypetoInfoType.id. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPMaintenanceInfoCmd.protected voidDecode theEPPMaintenanceInfoCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPMaintenanceInfoCmdinstance.booleanCompare an instance ofEPPMaintenanceInfoCmdwith this instance.Gets the iinfoTypefor the info command.getKey()Gets the key for the maintenance object, which is the maintenance identifier.Gets the maintenance identifier.Gets the EPP command Namespace associated withEPPMaintenanceInfoCmd.voidsetInfoType(EPPMaintenanceInfoCmd.InfoType aInfoType) Sets theinfoTypefor the info command.voidsetMaintenanceId(String aMaintenanceId) Sets the maintenance identifier.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPInfoCmd
doGenDecode, doGenEncode, getTypeMethods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPMaintenanceInfoCmd.- See Also:
-
ELM_NAME
XML root tag forEPPMaintenanceInfoCmd.- See Also:
-
-
Constructor Details
-
EPPMaintenanceInfoCmd
public EPPMaintenanceInfoCmd()EPPMaintenanceInfoCmddefault constructor. -
EPPMaintenanceInfoCmd
EPPMaintenanceInfoCmdconstructor that only takes the client transaction identifier. TheinfoTypeis set toInfoType.list.- Parameters:
aTransId- Transaction Id associated with command.
-
EPPMaintenanceInfoCmd
EPPMaintenanceInfoCmdconstructor that takes the transaction identifier and the maintenance identifier, while will automatically set theinfoTypetoInfoType.id.- Parameters:
aTransId- Transaction Id associated with command. Set tonullif a client transaction identifier is not desired.aMaintenanceId- Maintenance notification identifier to retrieve
-
-
Method Details
-
getInfoType
Gets the iinfoTypefor the info command.- Returns:
- the
infoTypefor the info command.
-
setInfoType
Sets theinfoTypefor the info command. The maintenance notification identifier is used only when theinfoTypeis set toInfoType.id.- Parameters:
aInfoType- TheinfoTypefor the info command.
-
getMaintenanceId
Gets the maintenance identifier.- Returns:
- The maintenance identifier if defined;
nullotherwise.
-
setMaintenanceId
Sets the maintenance identifier. When set to a non-nullvalue, theinfoTypeis set toInfoType.id; otherwiseinfoTypeis set toInfoType.list- Parameters:
aMaintenanceId- The maintenance notification identifier.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPMaintenanceInfoCmdinstance.- Specified by:
doEncodein classEPPInfoCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPMaintenanceInfoCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPMaintenanceInfoCmdinstance.
-
doDecode
Decode theEPPMaintenanceInfoCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPInfoCmd- Parameters:
aElement- Root DOM Element to decodeEPPMaintenanceInfoCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
Compare an instance ofEPPMaintenanceInfoCmdwith this instance.- Overrides:
equalsin classEPPInfoCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise.
-
clone
CloneEPPMaintenanceInfoCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- Deep copy clone of
EPPMaintenanceInfoCmd - 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.
-
getNamespace
Gets the EPP command Namespace associated withEPPMaintenanceInfoCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPMaintenanceMapFactory.NS
-
getKey
Gets the key for the maintenance object, which is the maintenance identifier.- Overrides:
getKeyin classEPPCommand- Returns:
- The maintenance identifier if set;
nullotherwise.
-