org.bsf.remoting.http
Class HttpServiceResponse

java.lang.Object
  |
  +--org.bsf.remoting.http.HttpServiceResponse
All Implemented Interfaces:
java.io.Serializable

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

This class holds the result of a client call. Depending on the server, the response can be a result or an exception.

See Also:
Serialized Form

Field Summary
private  java.lang.Object result
           
private  java.lang.Throwable throwable
           
 
Constructor Summary
HttpServiceResponse(java.lang.Object result)
           
HttpServiceResponse(java.lang.Throwable throwable)
           
 
Method Summary
 java.lang.Object getResult()
           
 java.lang.Throwable getThrowable()
           
 boolean isExceptionThrown()
           
 void setResult(java.lang.Object result)
           
 void setThrowable(java.lang.Throwable throwable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

throwable

private java.lang.Throwable throwable

result

private java.lang.Object result
Constructor Detail

HttpServiceResponse

public HttpServiceResponse(java.lang.Throwable throwable)

HttpServiceResponse

public HttpServiceResponse(java.lang.Object result)
Method Detail

getThrowable

public java.lang.Throwable getThrowable()

setThrowable

public void setThrowable(java.lang.Throwable throwable)

getResult

public java.lang.Object getResult()

setResult

public void setResult(java.lang.Object result)

isExceptionThrown

public boolean isExceptionThrown()