Class EPPSecDNSExtUpdate
- java.lang.Object
-
- com.verisign.epp.codec.secdnsext.v10.EPPSecDNSExtUpdate
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPSecDNSExtUpdate extends java.lang.Object implements EPPCodecComponent
The EPPSecDNSExtUpdate is the EPPCodecComponent that knows how to encode and decode secDNS update elements from/to XML and object instance.Title: EPP 1.0 secDNS
Description: secDNS Extension to the EPP SDK
Copyright: Copyright (c) 2006
Company: VeriSign
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ADD_ELM_NAME
Element tag name for the addstatic java.lang.String
CHG_ELM_NAME
Element tag name for the chgstatic java.lang.String
ELM_NAME
Element tag name for the updatestatic java.lang.String
REM_ELM_NAME
Element tag name for the rem
-
Constructor Summary
Constructors Constructor Description EPPSecDNSExtUpdate()
Instantiate a new instance of EPPSecDNSExtUpdateEPPSecDNSExtUpdate(java.util.List addDsData, java.util.List chgDsData, java.util.List remKeyTag)
Creates a new instance of theEPPSecDNSExtUpdate
with the add, chg, and rem elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendAdd(EPPSecDNSExtDsData dsData)
Add/Append to theList
of DS DataEPPSecDNSExtDsData
instances to addvoid
appendChg(EPPSecDNSExtDsData dsData)
Add/Append to theList
of DS DataEPPSecDNSExtDsData
instances to chgvoid
appendRem(int keyTag)
Add/Append to theList
of DS keyTagInteger
instances specifying keyTag to remvoid
appendRem(EPPSecDNSExtDsData dsData)
Add/Append to theList
of DS keyTagInteger
instances specifying keyTag to rem.void
appendRem(java.lang.Integer keyTag)
Add/Append to theList
of DS keyTagInteger
instances specifying keyTag to remjava.lang.Object
clone()
CloneEPPSecDNSExtUpdate
.void
decode(org.w3c.dom.Element aElement)
Populate the data of this instance with the data stored in the given Element of the DOM treeorg.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Append all data from this secDNS update to the given DOM Documentboolean
equals(java.lang.Object aObject)
implements a deepEPPSecDNSExtUpdate
compare.java.util.List
getAdd()
Get theList
of DS DataEPPSecDNSExtDsData
instances to addjava.util.List
getChg()
Get theList
of DS DataEPPSecDNSExtDsData
instances to chgjava.lang.String
getNamespace()
The namespace associated with this secDNS update.java.util.List
getRem()
Get theList
of DS keyTagInteger
instances specifying keyTag to remboolean
isUrgent()
Is the update request urgent?void
setAdd(java.util.List addDsData)
Set theList
of DS DataEPPSecDNSExtDsData
instances to addvoid
setChg(java.util.List chgDsData)
Set theList
of DS DataEPPSecDNSExtDsData
instances to chgvoid
setRem(java.util.List remKeyTag)
Set theList
of DS keyTagInteger
instances specifying keyTag to remvoid
setUrgent(boolean urgent)
Sets the urgent attribute.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
Element tag name for the update- See Also:
- Constant Field Values
-
ADD_ELM_NAME
public static final java.lang.String ADD_ELM_NAME
Element tag name for the add- See Also:
- Constant Field Values
-
CHG_ELM_NAME
public static final java.lang.String CHG_ELM_NAME
Element tag name for the chg- See Also:
- Constant Field Values
-
REM_ELM_NAME
public static final java.lang.String REM_ELM_NAME
Element tag name for the rem- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPSecDNSExtUpdate
public EPPSecDNSExtUpdate()
Instantiate a new instance of EPPSecDNSExtUpdate
-
EPPSecDNSExtUpdate
public EPPSecDNSExtUpdate(java.util.List addDsData, java.util.List chgDsData, java.util.List remKeyTag)
Creates a new instance of theEPPSecDNSExtUpdate
with the add, chg, and rem elements.- Parameters:
addDsData
-List
of DS DataEPPSecDNSExtDsData
instances to addchgDsData
-List
of DS DataEPPSecDNSExtDsData
instances to chgremKeyTag
-List
of DS keyTagInteger
instances specifying keyTag to rem
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
The namespace associated with this secDNS update.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- The namespace associated with secDNS component
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Append all data from this secDNS update to the given DOM Document- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- The DOM Document to append data to- Returns:
- Encoded DOM
Element
- Throws:
EPPEncodeException
- Thrown when errors occur during the encode attempt or if the instance is invalid.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- The root element of the report fragment of XML- Throws:
EPPDecodeException
- Thrown if any errors occur during decoding.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPSecDNSExtUpdate
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPSecDNSExtUpdate
instance to compare with- Returns:
- true if equal false otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPSecDNSExtUpdate
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPSecDNSExtUpdate
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
getAdd
public java.util.List getAdd()
Get theList
of DS DataEPPSecDNSExtDsData
instances to add- Returns:
List
ofEPPSecDNSExtDsData
instances
-
setAdd
public void setAdd(java.util.List addDsData)
Set theList
of DS DataEPPSecDNSExtDsData
instances to add- Parameters:
addDsData
-List
ofEPPSecDNSExtDsData
instances
-
appendAdd
public void appendAdd(EPPSecDNSExtDsData dsData)
Add/Append to theList
of DS DataEPPSecDNSExtDsData
instances to add- Parameters:
dsData
-EPPSecDNSExtDsData
instance
-
getChg
public java.util.List getChg()
Get theList
of DS DataEPPSecDNSExtDsData
instances to chg- Returns:
List
ofEPPSecDNSExtDsData
instances
-
setChg
public void setChg(java.util.List chgDsData)
Set theList
of DS DataEPPSecDNSExtDsData
instances to chg- Parameters:
chgDsData
-List
ofEPPSecDNSExtDsData
instances
-
appendChg
public void appendChg(EPPSecDNSExtDsData dsData)
Add/Append to theList
of DS DataEPPSecDNSExtDsData
instances to chg- Parameters:
dsData
-EPPSecDNSExtDsData
instance
-
getRem
public java.util.List getRem()
Get theList
of DS keyTagInteger
instances specifying keyTag to rem- Returns:
List
ofInteger
instances specifying keyTag to rem
-
setRem
public void setRem(java.util.List remKeyTag)
Set theList
of DS keyTagInteger
instances specifying keyTag to rem- Parameters:
remKeyTag
-List
ofInteger
instances specifying keyTag to rem
-
appendRem
public void appendRem(java.lang.Integer keyTag)
Add/Append to theList
of DS keyTagInteger
instances specifying keyTag to rem- Parameters:
keyTag
- anInteger
instance representing secDNS:keyTag
-
appendRem
public void appendRem(int keyTag)
Add/Append to theList
of DS keyTagInteger
instances specifying keyTag to rem- Parameters:
keyTag
- anint
value representing secDNS:keyTag
-
appendRem
public void appendRem(EPPSecDNSExtDsData dsData)
Add/Append to theList
of DS keyTagInteger
instances specifying keyTag to rem. This convenience method will extract the secDNS:keyTag element from theEPPSecDNSExtDsData
provided.- Parameters:
dsData
-EPPSecDNSExtDsData
instance specifying keyTag to rem
-
isUrgent
public boolean isUrgent()
Is the update request urgent?- Returns:
- Returns
true
if the client has asked the server operator to process the update command with a high priority;false
otherwise.
-
setUrgent
public void setUrgent(boolean urgent)
Sets the urgent attribute.- Parameters:
urgent
- The urgent value to set.
-
-