org.ektorp.http
Class StdResponseHandler<T>

java.lang.Object
  extended by org.ektorp.http.StdResponseHandler<T>
Type Parameters:
T -
All Implemented Interfaces:
ResponseCallback<T>
Direct Known Subclasses:
RevisionResponseHandler

public class StdResponseHandler<T>
extends java.lang.Object
implements ResponseCallback<T>

Author:
henrik lundgren

Constructor Summary
StdResponseHandler()
           
 
Method Summary
 T error(HttpResponse hr)
           
 T success(HttpResponse hr)
          Called when http response code is < 300
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdResponseHandler

public StdResponseHandler()
Method Detail

error

public T error(HttpResponse hr)
Specified by:
error in interface ResponseCallback<T>

success

public T success(HttpResponse hr)
          throws java.lang.Exception
Description copied from interface: ResponseCallback
Called when http response code is < 300

Specified by:
success in interface ResponseCallback<T>
Throws:
java.lang.Exception


Copyright © 2010. All Rights Reserved.