Package com.verisign.epp.codec.gen
Class EPPProtocolExtension
java.lang.Object
com.verisign.epp.codec.gen.EPPProtocolExtension
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Represents an EPPProtocol extension that is sent by an EPP Client and
received by an EPP Server. An
Every EPPProtocol extension must extend
EPPProtocolExtension can be encoded and
decoded by EPPCodec. Every EPPProtocol extension must extend
EPPProtocolExtension and
implement the Template Method Design Pattern doGenEncode and
doGenDecode methods. An EPPProtocolExtension client will call
encode or decode, which in turn will call doGenEncode
or doGenDecode, respectively. There is one derived
EPPProtocolExtension for each type of extension defined in the
general EPP Specification.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAllocates a newEPPProtocolExtensionwith default attribute values. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPProtocolExtension.voiddecodeEPPProtocolExtensionfrom a DOM element tree.protected abstract voidDecodes the atributes of a general extension ofEPPProtocolExtension.protected abstract ElementEncodes the atributes of a protocol extension ofEPPProtocolExtension.encodeEPPProtocolExtensioninto a DOM element tree.booleanimplements a deepEPPProtocolExtensioncompare.abstract StringGets the EPP namespace associated with theEPPProtocolExtension.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPProtocolExtension
public EPPProtocolExtension()Allocates a newEPPProtocolExtensionwith default attribute values.
-
-
Method Details
-
getNamespace
Gets the EPP namespace associated with theEPPProtocolExtension.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Returns:
- Namespace URI associated with the
EPPProtocolExtension.
-
encode
encodeEPPProtocolExtensioninto a DOM element tree. The <extensiongt; element is created and the attribute nodes are appending as children. This method is a Template Method in the Template Method Design Pattern.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document to create elements from- Returns:
- <extensiongt; root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPProtocolExtensionfrom a DOM element tree. The "extension" element needs to be the value of theaElementargument. This method is a Template Method in the Template Method Design Pattern.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- <extensiongt; root element tree.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements a deepEPPProtocolExtensioncompare. -
clone
CloneEPPProtocolExtension.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPProtocolExtension - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
doEncode
Encodes the atributes of a protocol extension ofEPPProtocolExtension. An example of a protocol extension isEPPAlert.encodeis a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.- Parameters:
aDocument- DOM document used as a factory of DOM objects.- Returns:
- instance root DOM element along with attribute child nodes.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
doDecode
Decodes the atributes of a general extension ofEPPProtocolExtension. An example of a protocol extension isEPPAlert.decodeis a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.- Parameters:
aElement- root DOM element associated with instance- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-