EPP 0.4.9

com.neulevel.epp.core.response
Class EppResultMessage

java.lang.Object
  extended by com.neulevel.epp.core.EppEntity
      extended by com.neulevel.epp.core.response.EppResultMessage

public class EppResultMessage
extends EppEntity

This EppResultMessage class implements EPP Result Message entity.

The id tag has been removed from EPP-1.0. For backward compatibility, the API is unchanged, but the id value would always be null.

Version:
$Revision: 1.2 $ $Date: 2006/03/01 01:35:38 $
Author:
Ning Zhang ning.zhang@neustar.com

Constructor Summary
EppResultMessage(java.lang.String message)
          Creates an EppResultMessage object
EppResultMessage(java.lang.String id, java.lang.String message)
          Creates an EppResultMessage object
EppResultMessage(java.lang.String id, java.lang.String language, java.lang.String message)
          Creates an EppResultMessage object
 
Method Summary
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppResultMessage object.
 java.lang.String getId()
          Gets message id This method is not functional in EPP-1.0, will be removed in the future.
 java.lang.String getLanguage()
          Gets language type of the message
 java.lang.String getMessage()
          Gets message to be returned
 void setId(java.lang.String id)
          Sets message id This method is not functional in EPP-1.0, will be removed in the future.
 void setLanguage(java.lang.String language)
          Sets language type of the message
 void setMessage(java.lang.String message)
          Sets message to be returned
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppResultMessage 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

EppResultMessage

public EppResultMessage(java.lang.String message)
Creates an EppResultMessage object

Parameters:
message - message to be returned

EppResultMessage

public EppResultMessage(java.lang.String id,
                        java.lang.String message)
Creates an EppResultMessage object

Parameters:
id - message id
message - message to be returned

EppResultMessage

public EppResultMessage(java.lang.String id,
                        java.lang.String language,
                        java.lang.String message)
Creates an EppResultMessage object

Parameters:
id - message id
language - langaue type of the message
message - message to be returned
Method Detail

getId

public java.lang.String getId()
Gets message id This method is not functional in EPP-1.0, will be removed in the future.

See Also:
EppResponse.getMessageId()

setId

public void setId(java.lang.String id)
Sets message id This method is not functional in EPP-1.0, will be removed in the future.

See Also:
EppResponse.setMessageId(java.lang.String)

getMessage

public java.lang.String getMessage()
Gets message to be returned


setMessage

public void setMessage(java.lang.String message)
Sets message to be returned


getLanguage

public java.lang.String getLanguage()
Gets language type of the message


setLanguage

public void setLanguage(java.lang.String language)
Sets language type of the message


toXML

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

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

fromXML

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

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

toString

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

EPP 0.4.9

Copyright © 2001-2006 NeuStar, Inc. All Rights Reserved.