ca.sqlpower.wabit.http
Class WabitHttpResponseHandler

java.lang.Object
  extended by ca.sqlpower.wabit.http.WabitHttpResponseHandler
All Implemented Interfaces:
org.apache.http.client.ResponseHandler<java.lang.String>

public class WabitHttpResponseHandler
extends java.lang.Object
implements org.apache.http.client.ResponseHandler<java.lang.String>

A custom ReponseHandler that, if it receives an HTTP 500 status (Internal Server Error), then it will retrieve the server stacktrace in the reponse entity (Wabit Server will be implemented to take server stacktraces and place them in the response). This way, it will make it easier for client users to report errors to us to fix in the server.


Constructor Summary
WabitHttpResponseHandler()
           
 
Method Summary
 java.lang.String handleResponse(org.apache.http.HttpResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WabitHttpResponseHandler

public WabitHttpResponseHandler()
Method Detail

handleResponse

public java.lang.String handleResponse(org.apache.http.HttpResponse response)
                                throws org.apache.http.client.ClientProtocolException,
                                       java.io.IOException
Specified by:
handleResponse in interface org.apache.http.client.ResponseHandler<java.lang.String>
Throws:
org.apache.http.client.ClientProtocolException
java.io.IOException


Copyright © 2009. All Rights Reserved.