org.resilientedge.jockey.service
Class ServiceResponse

java.lang.Object
  |
  +--org.resilientedge.jockey.service.ServiceResponse
All Implemented Interfaces:
java.io.Serializable

public class ServiceResponse
extends java.lang.Object
implements java.io.Serializable

A service response contains the success or error message obtained after a service invocation.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner
See Also:
Serialized Form

Constructor Summary
ServiceResponse()
           
 
Method Summary
 java.lang.String getFault()
          Gets the string containing the error, if any
 java.lang.Object getResponse()
          Gets the string containing the success message, if any
 boolean isFault()
          Returns true if the service call resulted in an error.
 void setFault(java.lang.String newValue)
          Sets the string containing the error, if any
 void setResponse(java.lang.Object newValue)
          Sets the string containing the success message, if any
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceResponse

public ServiceResponse()
Method Detail

isFault

public boolean isFault()
Returns true if the service call resulted in an error.
Returns:
true if fault

getFault

public java.lang.String getFault()
Gets the string containing the error, if any
Returns:
The Fault value

getResponse

public java.lang.Object getResponse()
Gets the string containing the success message, if any
Returns:
The Response value

setFault

public void setFault(java.lang.String newValue)
Sets the string containing the error, if any
Parameters:
newValue - The new Fault value

setResponse

public void setResponse(java.lang.Object newValue)
Sets the string containing the success message, if any
Parameters:
newValue - The new Response value

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.