Package com.verisign.epp.codec.gen
Class EPPHello
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPHello
-
- All Implemented Interfaces:
EPPCodecComponent
,EPPMessage
,java.io.Serializable
,java.lang.Cloneable
public class EPPHello extends java.lang.Object implements EPPMessage
Represents an EPP hello request that is sent by an EPP Client and received by an EPP Server. EPP MAY be carried over both connection-oriented and connection-less transport protocols. An EPP client MAY request a <greeting> from an EPP server at any time by sending a <hello> to a server. Use of this element is essential in a connection-less environment where a server can not return a <greeting> in response to a client-initiated connection. An EPP <hello> SHALL be an empty element with no child elements.
AnEPPHello
can be encoded and decoded byEPPCodec
.
AnEPPHello
request should result in the EPP Server sending back anEPPGreeting
.- See Also:
EPPGreeting
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPHello()
Allocates a newEPPHello
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPHello
.void
decode(org.w3c.dom.Element aElement)
decodeEPPHello
from a DOM element tree.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
encodeEPPHello
into a DOM element tree.boolean
equals(java.lang.Object aObject)
implements a deepEPPHello
compare.java.lang.String
getNamespace()
Gets the associated EPP namespace.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the associated EPP namespace. The general EPP namespace is returned, which is defined asEPPCodec.NS
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Specified by:
getNamespace
in interfaceEPPMessage
- Returns:
- namespace URI
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encodeEPPHello
into a DOM element tree. The <hello> element is created and returned.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document to create elements- Returns:
- <hello> root element tree.
- Throws:
EPPEncodeException
- Error encoding the DOM element tree.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decodeEPPHello
from a DOM element tree. The "hello" element needs to be the value of theaElement
argument. SinceEPPHello
contains no attribute, no attributes need to be set thedecode
.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- <hello> root element tree.- Throws:
EPPDecodeException
- Error decoding the DOM element tree.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPHello
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPHello
instance to compare with- Returns:
true
if equal;false
otherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPHello
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPHello
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
-