org.ektorp.impl
Class RevisionResponseHandler

java.lang.Object
  extended by org.ektorp.http.StdResponseHandler<DocumentOperationResult>
      extended by org.ektorp.impl.RevisionResponseHandler
All Implemented Interfaces:
ResponseCallback<DocumentOperationResult>

public class RevisionResponseHandler
extends StdResponseHandler<DocumentOperationResult>

Extracts the document revision if the operation was successful

Author:
henrik lundgren

Constructor Summary
RevisionResponseHandler(org.codehaus.jackson.map.ObjectMapper om)
           
 
Method Summary
 DocumentOperationResult success(HttpResponse hr)
          Called when http response code is < 300
 
Methods inherited from class org.ektorp.http.StdResponseHandler
createDbAccessException, error
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevisionResponseHandler

public RevisionResponseHandler(org.codehaus.jackson.map.ObjectMapper om)
Method Detail

success

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

Specified by:
success in interface ResponseCallback<DocumentOperationResult>
Overrides:
success in class StdResponseHandler<DocumentOperationResult>
Throws:
Exception


Copyright © 2011. All Rights Reserved.