DLESE Tools
v1.6.0

org.dlese.dpc.services.dds.toolkit
Class DDSServicesResponse

java.lang.Object
  extended by org.dlese.dpc.services.dds.toolkit.DDSServicesResponse

public final class DDSServicesResponse
extends Object

Encapsulates a response from a DDSWS or DDSUpdateWS service request.

Author:
John Weatherley

Constructor Summary
protected DDSServicesResponse(String requestMade, Document responseDocument)
          Constructor for the DDSServicesResponse object
 
Method Summary
protected static String getDateStamp()
          Return a string for the current time and date, sutiable for display in log files and output to standout:
 String getRequestString()
          Gets the full request that was made to the service.
 Document getResponseDocument()
          Gets the service response.
static void setDebug(boolean db)
          Sets the debug attribute of the object
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DDSServicesResponse

protected DDSServicesResponse(String requestMade,
                              Document responseDocument)
Constructor for the DDSServicesResponse object

Parameters:
requestMade - The request made to the service
responseDocument - The response
Method Detail

getResponseDocument

public Document getResponseDocument()
Gets the service response.

Returns:
The responseDocument value

getRequestString

public String getRequestString()
Gets the full request that was made to the service.

Returns:
The requestString value

toString

public String toString()
Overrides:
toString in class Object

getDateStamp

protected static final String getDateStamp()
Return a string for the current time and date, sutiable for display in log files and output to standout:

Returns:
The dateStamp value

setDebug

public static void setDebug(boolean db)
Sets the debug attribute of the object

Parameters:
db - The new debug value

DLESE Tools
v1.6.0