Class EPPMaintenanceInfoResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceInfoResp
-
- All Implemented Interfaces:
EPPCodecComponent
,EPPMessage
,java.io.Serializable
,java.lang.Cloneable
public class EPPMaintenanceInfoResp extends EPPResponse
Response information associated with aEPPMaintenanceInfoCmd
of typeEPPMaintenanceInfoCmd.InfoType.id
, which will only include a single element, and of typeEPPMaintenanceInfoCmd.InfoType.id
that can include a list of zero or more maintenances items (EPPMaintenanceListItem
).- See Also:
EPPMaintenanceInfoCmd
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EPPMaintenanceInfoResp.InfoType
The type of the info response, which is either the details of an individual maintenance withmaintenance
of a list of maintenance items withlist
.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPMaintenanceInfoResp
.static java.lang.String
ELM_NAME
XML root tag forEPPMaintenanceInfoResp
.-
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
Constructors Constructor Description EPPMaintenanceInfoResp()
EPPMaintenanceInfoResp
default constructor.EPPMaintenanceInfoResp(EPPTransId aTransId)
EPPMaintenanceInfoResp
constructor that only takes the transaction identifier.EPPMaintenanceInfoResp(EPPTransId aTransId, EPPMaintenanceItem aMaintenance)
EPPMaintenanceInfoResp
constructor that only takes the transaction identifier and the maintenance, which will set theinfoType
toInfoType#maintenance
.EPPMaintenanceInfoResp(EPPTransId aTransId, java.util.List<EPPMaintenanceListItem> aListItems)
EPPMaintenanceInfoResp
constructor that only takes the transaction identifier and the list of maintenance items, which will set theinfoType
toEPPMaintenanceInfoResp.InfoType.list
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListItem(EPPMaintenanceListItem aItem)
Adds a maintenance item to the list of maintenance items.java.lang.Object
clone()
CloneEPPMaintenanceInfoResp
.protected void
doDecode(org.w3c.dom.Element aElement)
Decode theEPPMaintenanceInfoResp
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 theEPPMaintenanceInfoResp
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPMaintenanceInfoResp
with this instance.EPPMaintenanceInfoResp.InfoType
getInfoType()
Gets theinfoType
for the info response.java.util.List<EPPMaintenanceListItem>
getListItems()
Gets the list of maintenance items.EPPMaintenanceItem
getMaintenance()
Gets the maintenance.java.lang.String
getNamespace()
Gets the EPP command namespace associated withEPPMaintenanceInfoResp
.java.lang.String
getType()
Gets the EPP response type associated withEPPMaintenanceInfoResp
.boolean
hasListItems()
Is there any maintenance list items set?boolean
hastMaintenance()
Is the maintenance defined?void
setInfoType(EPPMaintenanceInfoResp.InfoType aInfoType)
Sets theinfoType
for the info response.void
setListItems(java.util.List<EPPMaintenanceListItem> aListItmes)
Sets the list of maintenance items.void
setMaintenance(EPPMaintenanceItem aMaintenance)
Sets the maintenance.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.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 Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPMaintenanceInfoResp
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPMaintenanceInfoResp
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPMaintenanceInfoResp
public EPPMaintenanceInfoResp()
EPPMaintenanceInfoResp
default constructor. The will default toInfoType.list
.
-
EPPMaintenanceInfoResp
public EPPMaintenanceInfoResp(EPPTransId aTransId)
EPPMaintenanceInfoResp
constructor that only takes the transaction identifier.- Parameters:
aTransId
- Transaction Id associated with response.
-
EPPMaintenanceInfoResp
public EPPMaintenanceInfoResp(EPPTransId aTransId, EPPMaintenanceItem aMaintenance)
EPPMaintenanceInfoResp
constructor that only takes the transaction identifier and the maintenance, which will set theinfoType
toInfoType#maintenance
.- Parameters:
aTransId
- Transaction Id associated with command. Set tonull
if a client transaction identifier is not desired.aMaintenance
- Maintenance object
-
EPPMaintenanceInfoResp
public EPPMaintenanceInfoResp(EPPTransId aTransId, java.util.List<EPPMaintenanceListItem> aListItems)
EPPMaintenanceInfoResp
constructor that only takes the transaction identifier and the list of maintenance items, which will set theinfoType
toEPPMaintenanceInfoResp.InfoType.list
.- Parameters:
aTransId
- Transaction Id associated with command. Set tonull
if a client transaction identifier is not desired.aListItems
- Maintenance list items
-
-
Method Detail
-
getInfoType
public EPPMaintenanceInfoResp.InfoType getInfoType()
Gets theinfoType
for the info response.- Returns:
- the
infoType
for the info response.
-
setInfoType
public void setInfoType(EPPMaintenanceInfoResp.InfoType aInfoType)
Sets theinfoType
for the info response.- Parameters:
aInfoType
- TheinfoType
for the info response.
-
hastMaintenance
public boolean hastMaintenance()
Is the maintenance defined?- Returns:
true
if the maintenance is defined;false
otherwise.
-
getMaintenance
public EPPMaintenanceItem getMaintenance()
Gets the maintenance.- Returns:
- The maintenance if defined;
null
otherwise.
-
setMaintenance
public void setMaintenance(EPPMaintenanceItem aMaintenance)
Sets the maintenance. When set to a non-null
value, theinfoType
is set toInfoType.maintenance
; otherwiseinfoType
is set toInfoType.list
.- Parameters:
aMaintenance
- The maintenance.
-
hasListItems
public boolean hasListItems()
Is there any maintenance list items set?- Returns:
true
if there is at least oneEPPMaintenanceListItem
set;false
otherwise.
-
addListItem
public void addListItem(EPPMaintenanceListItem aItem)
Adds a maintenance item to the list of maintenance items.- Parameters:
aItem
- maintenance item to add to the list of maintenance items.
-
getListItems
public java.util.List<EPPMaintenanceListItem> getListItems()
Gets the list of maintenance items.- Returns:
- The list of maintenance items if defined;
null
otherwise.
-
setListItems
public void setListItems(java.util.List<EPPMaintenanceListItem> aListItmes)
Sets the list of maintenance items. When set to a non-null
value, theinfoType
is set toInfoType.list
; otherwiseinfoType
is set toInfoType.maintenance
.- Parameters:
aListItmes
- the list items to set.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPMaintenanceInfoResp
instance.- Overrides:
doEncode
in classEPPResponse
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPMaintenanceInfoResp instance.
- Throws:
EPPEncodeException
- Unable to encode EPPMaintenanceInfoResp instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPMaintenanceInfoResp
attributes from the aElement DOM Element tree.- Overrides:
doDecode
in classEPPResponse
- Parameters:
aElement
- Root DOM Element to decodeEPPMaintenanceInfoResp
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPMaintenanceInfoResp
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classEPPResponse
- Returns:
- clone of
EPPMaintenanceInfoResp
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPMaintenanceInfoResp
.- Overrides:
getType
in classEPPResponse
- Returns:
EPPMaintenanceInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPMaintenanceInfoResp
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Overrides:
getNamespace
in classEPPResponse
- Returns:
EPPMaintenanceMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPMaintenanceInfoResp
with this instance.- Overrides:
equals
in classEPPResponse
- Parameters:
aObject
- Object to compare with.- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPResponse
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
-