EPP 0.2.6

com.neulevel.epp.core
Class EppGreeting

java.lang.Object
  extended bycom.neulevel.epp.core.EppEntity
      extended bycom.neulevel.epp.core.EppGreeting

public class EppGreeting
extends EppEntity

This EppGreeting class implements EPP Greeting entity used in the EPP Protocol initialization.

Version:
$Revision: 1.1.1.1 $ $Date: 2005/12/06 20:11:35 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppGreeting()
          Creates an EppGreeting object with default setting
EppGreeting(java.lang.String serviceId, EppServiceMenu serviceMenu)
          Creates an EppGreeting object, given a service identifier and a service menu
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppGreeting object.
 java.util.Calendar getServiceDate()
          Gets the date associated with the service.
 java.lang.String getServiceId()
          Gets the identifier of the service
 EppServiceMenu getServiceMenu()
          Gets the menu of the service provided
 void setServiceDate(java.util.Calendar serviceDate)
          Sets the date associated with the service
 void setServiceId(java.lang.String serviceId)
          Sets the identifier of the service
 void setServiceMenu(EppServiceMenu serviceMenu)
          Sets the menu of the service provided
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppGreeting object into an XML element
 
Methods inherited from class com.neulevel.epp.core.EppEntity
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EppGreeting

public EppGreeting()
Creates an EppGreeting object with default setting


EppGreeting

public EppGreeting(java.lang.String serviceId,
                   EppServiceMenu serviceMenu)
Creates an EppGreeting object, given a service identifier and a service menu

Parameters:
serviceId - the identifier of the service provided
serviceMenu - the menu of the service provided
Method Detail

getServiceId

public java.lang.String getServiceId()
Gets the identifier of the service


setServiceId

public void setServiceId(java.lang.String serviceId)
Sets the identifier of the service


getServiceDate

public java.util.Calendar getServiceDate()
Gets the date associated with the service. The default value is the Calendar value when the EppGreeting is created.


setServiceDate

public void setServiceDate(java.util.Calendar serviceDate)
Sets the date associated with the service


getServiceMenu

public EppServiceMenu getServiceMenu()
Gets the menu of the service provided


setServiceMenu

public void setServiceMenu(EppServiceMenu serviceMenu)
Sets the menu of the service provided


toXML

public org.w3c.dom.Element toXML(org.w3c.dom.Document doc,
                                 java.lang.String tag)
Converts the EppGreeting object into an XML element

Specified by:
toXML in class EppEntity
Parameters:
doc - the XML Document object
tag - the tag/element name for the EppGreeting object
Returns:
an Element object

fromXML

public static EppEntity fromXML(org.w3c.dom.Node root)
Converts an XML element into an EppGreeting object. The caller of this method must make sure that the root node is of the EPP addrType.

Parameters:
root - root node for an EppGreeting object in XML format
Returns:
an EppGreeting object, or null if the node is invalid

toString

public java.lang.String toString()
Specified by:
toString in class EppEntity

EPP 0.2.6

Copyright © 2001-2002 NeuLevel, Inc. All Rights Reserved.