edu.indiana.dde.mylead.client
Class LeadXMLResponse

java.lang.Object
  extended byedu.indiana.dde.mylead.client.LeadXMLResponse

public class LeadXMLResponse
extends java.lang.Object

The methods in this class are passed the OGSA-DAI response document received from the myLEAD server and parse out the response and the Returntype which indicates whether the operation was successful.


Field Summary
static LeadXMLResponse singletonresponse
           
 
Method Summary
 org.globus.mcs.common.ReturnType getAttrDefResponse(java.lang.String xmlresponse, LeadStringHolder xmlResult)
          Processes the ReturnType and XML response document for a query of the myLEAD attribute definitions.
static LeadXMLResponse getInstance()
           
 org.globus.mcs.common.ReturnType getNotificationResponse(java.lang.String xmlresponse, LeadStringHolder xmlResult)
          Deprecated. As of version 0.3 Alpha the queryLead method in the LeadCClient class should be used with the TARGET_ATTR filter instead of the notification specific method that called this method.
 org.globus.mcs.common.ReturnType getQueryLeadResponse(java.lang.String xmlresponse, LeadStringHolder xmlResult)
          Processes the ReturnType and XML document for a leadQuery response document.
 org.globus.mcs.common.ReturnType getQueryResponse(java.lang.String xmlresponse, LeadStringHolder xmlResult)
          Processes the ReturnType and XML response document for a myLEAD query.
 org.globus.mcs.common.ReturnType getReturnTypeResponse(java.lang.String xmlresponse)
          Processes the ReturnType results for data publishing API's.
 org.globus.mcs.common.ReturnType getWorkflowInstResponse(java.lang.String xmlresponse, LeadStringHolder xmlResult)
          Deprecated. As of version 0.3 Alpha the queryLead method in the LeadCClient class should be used with the TARGET_ATTR filter instead of the workflow instance specific method that called this method.
 org.globus.mcs.common.ReturnType getWorkflowTempResponse(java.lang.String xmlresponse, LeadStringHolder xmlResult)
          Deprecated. As of version 0.3 Alpha the queryLead method in the LeadCClient class should be used with the TARGET_ATTR filter instead of the workflow template specific method that called this method.
 void init()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singletonresponse

public static LeadXMLResponse singletonresponse
Method Detail

getInstance

public static LeadXMLResponse getInstance()

init

public void init()

getReturnTypeResponse

public org.globus.mcs.common.ReturnType getReturnTypeResponse(java.lang.String xmlresponse)
Processes the ReturnType results for data publishing API's.

Parameters:
xmlresponse - String containing the XML response returned by the myLEAD server.
Returns:
ReturnType The return type returned by the server that indicates whether the operation was successful.
See Also:
ReturnType

getQueryResponse

public org.globus.mcs.common.ReturnType getQueryResponse(java.lang.String xmlresponse,
                                                         LeadStringHolder xmlResult)
Processes the ReturnType and XML response document for a myLEAD query. Used for all of the data access API's.

Parameters:
xmlresponse - String containing the XML response returned by the myLEAD server.
Returns:
ReturnType returned by the server that indicates whether the operation was successful.
See Also:
ReturnType

getQueryLeadResponse

public org.globus.mcs.common.ReturnType getQueryLeadResponse(java.lang.String xmlresponse,
                                                             LeadStringHolder xmlResult)
Processes the ReturnType and XML document for a leadQuery response document.

Parameters:
xmlresponse - String containing the XML response returned by the myLEAD server.
Returns:
ReturnType ReturnType returned by the server that indicates whether the operation was successful.
See Also:
ReturnType

getAttrDefResponse

public org.globus.mcs.common.ReturnType getAttrDefResponse(java.lang.String xmlresponse,
                                                           LeadStringHolder xmlResult)
Processes the ReturnType and XML response document for a query of the myLEAD attribute definitions.

Parameters:
xmlresponse - String containing the XML response returned by the myLEAD server.
Returns:
ReturnType ReturnType returned by the server that indicates whether the operation was successful.
See Also:
ReturnType

getWorkflowTempResponse

public org.globus.mcs.common.ReturnType getWorkflowTempResponse(java.lang.String xmlresponse,
                                                                LeadStringHolder xmlResult)
Deprecated. As of version 0.3 Alpha the queryLead method in the LeadCClient class should be used with the TARGET_ATTR filter instead of the workflow template specific method that called this method.

Processes the ReturnType and XML response document for a query of the workflow templates.

Parameters:
xmlresponse - String containing the XML response returned by the myLEAD server.
Returns:
ReturnType ReturnType returned by the server that indicates whether the operation was successful.
See Also:
ReturnType

getWorkflowInstResponse

public org.globus.mcs.common.ReturnType getWorkflowInstResponse(java.lang.String xmlresponse,
                                                                LeadStringHolder xmlResult)
Deprecated. As of version 0.3 Alpha the queryLead method in the LeadCClient class should be used with the TARGET_ATTR filter instead of the workflow instance specific method that called this method.

Processes the ReturnType and XML response document for a query of the workflow instances.

Parameters:
xmlresponse - String containing the XML response returned by the myLEAD server.
Returns:
ReturnType ReturnType returned by the server that indicates whether the operation was successful.
See Also:
ReturnType

getNotificationResponse

public org.globus.mcs.common.ReturnType getNotificationResponse(java.lang.String xmlresponse,
                                                                LeadStringHolder xmlResult)
Deprecated. As of version 0.3 Alpha the queryLead method in the LeadCClient class should be used with the TARGET_ATTR filter instead of the notification specific method that called this method.

Processes the ReturnType and XML response document for a query of the notifications.

Parameters:
xmlresponse - String containing the XML response returned by the myLEAD server.
Returns:
ReturnType ReturnType returned by the server that indicates whether the operation was successful.
See Also:
ReturnType