com.jdon.bussinessproxy.remote.http
Class HttpResponse

java.lang.Object
  extended by com.jdon.bussinessproxy.remote.http.HttpResponse
All Implemented Interfaces:
java.io.Serializable

public class HttpResponse
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

Constructor Summary
HttpResponse(java.lang.Object result)
           
HttpResponse(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
 

Constructor Detail

HttpResponse

public HttpResponse(java.lang.Throwable throwable)

HttpResponse

public HttpResponse(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()