Package com.verisign.epp.codec.ttl.v1_0
Class EPPTtlUpdate
- java.lang.Object
-
- com.verisign.epp.codec.ttl.v1_0.EPPTtlExtension
-
- com.verisign.epp.codec.ttl.v1_0.EPPTtlUpdate
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPTtlUpdate extends EPPTtlExtension
TTL Create Extension that enables a client to pass the TTL values with an update command.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPTtlUpdate.static java.lang.StringELM_NAMEXML root tag forEPPTtlUpdate.
-
Constructor Summary
Constructors Constructor Description EPPTtlUpdate()Default constructor forEPPTtlUpdate.EPPTtlUpdate(EPPTtl aTtl)Constructor forEPPTtlUpdatethat takes a single TTL.EPPTtlUpdate(java.util.List<EPPTtl> aTtls)Constructor forEPPTtlUpdatethat a list of TTLs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode of aEPPTtlUpdateinstance that includes checks of the TTLs.protected java.lang.StringgetLocalName()Returns the local name "update" for the update extension.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPTtlUpdate.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPTtlUpdate.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPTtlUpdate
public EPPTtlUpdate()
Default constructor forEPPTtlUpdate.
-
EPPTtlUpdate
public EPPTtlUpdate(EPPTtl aTtl)
Constructor forEPPTtlUpdatethat takes a single TTL.- Parameters:
aTtl- A single TTL value
-
EPPTtlUpdate
public EPPTtlUpdate(java.util.List<EPPTtl> aTtls)
Constructor forEPPTtlUpdatethat a list of TTLs.- Parameters:
aTtls- A list of TTLs
-
-
Method Detail
-
getLocalName
protected java.lang.String getLocalName()
Returns the local name "update" for the update extension.- Specified by:
getLocalNamein classEPPTtlExtension- Returns:
- Local name "update" for the update extension.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode of aEPPTtlUpdateinstance that includes checks of the TTLs.- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPTtlExtension- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPTtlExtension
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Returns:
- XML namespace for the
EPPCodecComponent.
-
-