Package com.verisign.epp.codec.ttl.v1_0
Class EPPTtlInfo
java.lang.Object
com.verisign.epp.codec.ttl.v1_0.EPPTtlInfo
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
TTL Info Extension that enables a client to indicate whether to include the
TTL policy attributes in the response.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPTtlInfo.EPPTtlInfo(boolean aPolicy) Constructor forEPPTtlInfothat takes a single TTL. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voidDecode a DOM element tree to initialize the instance attributes.Encode of aEPPTtlInfoinstance that includes checks of the TTLs.booleanCompare an instance ofEPPTtlInfowith this instance.protected StringReturns the local name "info" for the info extension.Returns the XML namespace associated with theEPPCodecComponent.booleanisPolicy()Is the policy attributes requested in the response?voidsetPolicy(boolean aPolicy) Sets whether the policy attributes are requested in the response.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPTtlInfo.- See Also:
-
ELM_NAME
XML root tag forEPPTtlInfo.- See Also:
-
-
Constructor Details
-
EPPTtlInfo
public EPPTtlInfo()Default constructor forEPPTtlInfo. -
EPPTtlInfo
public EPPTtlInfo(boolean aPolicy) Constructor forEPPTtlInfothat takes a single TTL.- Parameters:
aPolicy- The policy
-
-
Method Details
-
getLocalName
Returns the local name "info" for the info extension.- Returns:
- Local name "info" for the info extension.
-
isPolicy
public boolean isPolicy()Is the policy attributes requested in the response?- Returns:
trueto include the policy attributes in the response;falseotherwise.
-
setPolicy
public void setPolicy(boolean aPolicy) Sets whether the policy attributes are requested in the response.- Parameters:
aPolicy-trueto include the policy attributes in the response;falseotherwise.
-
encode
Encode of aEPPTtlInfoinstance that includes checks of the TTLs.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPTtlExtension
-
decode
Decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPTtlExtension - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPTtlInfowith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-