EPP 0.2.6

com.neulevel.epp.core.response
Class EppResponse

java.lang.Object
  extended bycom.neulevel.epp.core.EppEntity
      extended bycom.neulevel.epp.core.response.EppResponse

public class EppResponse
extends EppEntity

This EppResponse class implements EPP Response entity.

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

Constructor Summary
EppResponse()
           
 
Method Summary
 void addResult(EppResult result)
          Adds a result object
static EppEntity fromXML(org.w3c.dom.Node root)
          Converts an XML element into an EppResponse object.
 int getMessageQueued()
          Gets number of messages queued
 java.util.Calendar getMessageQueueUpdated()
          Gets the timestamp of the message queue updated by the server
 EppResponseData getResponseData()
          Gets response data
 java.util.Vector getResult()
          Gets result
 EppTransactionId getTransactionId()
          Gets transaction id from the registrar client
 EppUnspec getUnspec()
          Gets optional unspecified object
 void setMessageQueued(int number)
          Sets number of messages queued
 void setMessageQueueUpdated(java.util.Calendar cal)
          Sets the timestamp of the message queue updated by the server
 void setResponseData(EppResponseData data)
          Sets response data
 void setTransactionId(EppTransactionId xid)
          Sets transaction id
 void setUnspec(EppUnspec unspec)
          Sets optional unspecified object
 boolean success()
          Checks if the EPP Response is for a completed operation without any error
 java.lang.String toString()
           
 org.w3c.dom.Element toXML(org.w3c.dom.Document doc, java.lang.String tag)
          Converts the EppResponse 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

EppResponse

public EppResponse()
Method Detail

getResult

public java.util.Vector getResult()
Gets result


addResult

public void addResult(EppResult result)
Adds a result object


getMessageQueued

public int getMessageQueued()
Gets number of messages queued


setMessageQueued

public void setMessageQueued(int number)
Sets number of messages queued


getMessageQueueUpdated

public java.util.Calendar getMessageQueueUpdated()
Gets the timestamp of the message queue updated by the server


setMessageQueueUpdated

public void setMessageQueueUpdated(java.util.Calendar cal)
Sets the timestamp of the message queue updated by the server


getResponseData

public EppResponseData getResponseData()
Gets response data


setResponseData

public void setResponseData(EppResponseData data)
Sets response data


getUnspec

public EppUnspec getUnspec()
Gets optional unspecified object


setUnspec

public void setUnspec(EppUnspec unspec)
Sets optional unspecified object


getTransactionId

public EppTransactionId getTransactionId()
Gets transaction id from the registrar client


setTransactionId

public void setTransactionId(EppTransactionId xid)
Sets transaction id


success

public boolean success()
Checks if the EPP Response is for a completed operation without any error


toXML

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

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

fromXML

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

Parameters:
root - root node for an EppResponse object in XML format
Returns:
an EppResponse 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.