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
,java.io.Serializable
,java.lang.Cloneable
public class EPPMaintenanceInfoCmd extends EPPInfoCmd
Command used to used to retrieve registry maintenance information.- See Also:
EPPMaintenanceInfoResp
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EPPMaintenanceInfoCmd.InfoType
The type of the info command, which is for an individual maintenance or a list of maintenances.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPMaintenanceInfoCmd
.static java.lang.String
ELM_NAME
XML 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
Constructors Constructor Description EPPMaintenanceInfoCmd()
EPPMaintenanceInfoCmd
default constructor.EPPMaintenanceInfoCmd(java.lang.String aTransId)
EPPMaintenanceInfoCmd
constructor that only takes the client transaction identifier.EPPMaintenanceInfoCmd(java.lang.String aTransId, java.lang.String aMaintenanceId)
EPPMaintenanceInfoCmd
constructor that takes the transaction identifier and the maintenance identifier, while will automatically set theinfoType
toInfoType.id
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPMaintenanceInfoCmd
.protected void
doDecode(org.w3c.dom.Element aElement)
Decode theEPPMaintenanceInfoCmd
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 theEPPMaintenanceInfoCmd
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPMaintenanceInfoCmd
with this instance.EPPMaintenanceInfoCmd.InfoType
getInfoType()
Gets the iinfoType
for the info command.java.lang.String
getMaintenanceId()
Gets the maintenance identifier.java.lang.String
getNamespace()
Gets the EPP command Namespace associated withEPPMaintenanceInfoCmd
.void
setInfoType(EPPMaintenanceInfoCmd.InfoType aInfoType)
Sets theinfoType
for the info command.void
setMaintenanceId(java.lang.String aMaintenanceId)
Sets the maintenance identifier.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.-
Methods inherited from class com.verisign.epp.codec.gen.EPPInfoCmd
doGenDecode, doGenEncode, getType
-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPMaintenanceInfoCmd
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPMaintenanceInfoCmd
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPMaintenanceInfoCmd
public EPPMaintenanceInfoCmd()
EPPMaintenanceInfoCmd
default constructor.
-
EPPMaintenanceInfoCmd
public EPPMaintenanceInfoCmd(java.lang.String aTransId)
EPPMaintenanceInfoCmd
constructor that only takes the client transaction identifier. TheinfoType
is set toInfoType.list
.- Parameters:
aTransId
- Transaction Id associated with command.
-
EPPMaintenanceInfoCmd
public EPPMaintenanceInfoCmd(java.lang.String aTransId, java.lang.String aMaintenanceId)
EPPMaintenanceInfoCmd
constructor that takes the transaction identifier and the maintenance identifier, while will automatically set theinfoType
toInfoType.id
.- Parameters:
aTransId
- Transaction Id associated with command. Set tonull
if a client transaction identifier is not desired.aMaintenanceId
- Maintenance notification identifier to retrieve
-
-
Method Detail
-
getInfoType
public EPPMaintenanceInfoCmd.InfoType getInfoType()
Gets the iinfoType
for the info command.- Returns:
- the
infoType
for the info command.
-
setInfoType
public void setInfoType(EPPMaintenanceInfoCmd.InfoType aInfoType)
Sets theinfoType
for the info command. The maintenance notification identifier is used only when theinfoType
is set toInfoType.id
.- Parameters:
aInfoType
- TheinfoType
for the info command.
-
getMaintenanceId
public java.lang.String getMaintenanceId()
Gets the maintenance identifier.- Returns:
- The maintenance identifier if defined;
null
otherwise.
-
setMaintenanceId
public void setMaintenanceId(java.lang.String aMaintenanceId)
Sets the maintenance identifier. When set to a non-null
value, theinfoType
is set toInfoType.id
; otherwiseinfoType
is set toInfoType.list
- Parameters:
aMaintenanceId
- The maintenance notification identifier.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPMaintenanceInfoCmd
instance.- Specified by:
doEncode
in classEPPInfoCmd
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPMaintenanceInfoCmd
instance. - Throws:
EPPEncodeException
- Unable to encodeEPPMaintenanceInfoCmd
instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPMaintenanceInfoCmd
attributes from the aElement DOM Element tree.- Specified by:
doDecode
in classEPPInfoCmd
- Parameters:
aElement
- Root DOM Element to decodeEPPMaintenanceInfoCmd
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPMaintenanceInfoCmd
with this instance.- Overrides:
equals
in classEPPInfoCmd
- 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
CloneEPPMaintenanceInfoCmd
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classEPPCommand
- Returns:
- Deep copy clone of
EPPMaintenanceInfoCmd
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPCommand
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPMaintenanceInfoCmd
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Specified by:
getNamespace
in classEPPCommand
- Returns:
EPPMaintenanceMapFactory.NS
-
-