org.ektorp.impl
Class EmbeddedDocViewResponseHandler<T>

java.lang.Object
  extended by org.ektorp.http.StdResponseHandler<List<T>>
      extended by org.ektorp.impl.EmbeddedDocViewResponseHandler<T>
Type Parameters:
T -
All Implemented Interfaces:
ResponseCallback<List<T>>

public class EmbeddedDocViewResponseHandler<T>
extends StdResponseHandler<List<T>>

Reads view result and extracts documents and maps them to the specified type.

Author:
henrik lundgren

Constructor Summary
EmbeddedDocViewResponseHandler(Class<T> docType, org.codehaus.jackson.map.ObjectMapper om)
           
EmbeddedDocViewResponseHandler(Class<T> docType, org.codehaus.jackson.map.ObjectMapper om, boolean ignoreNotFound)
           
 
Method Summary
 List<T> 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

EmbeddedDocViewResponseHandler

public EmbeddedDocViewResponseHandler(Class<T> docType,
                                      org.codehaus.jackson.map.ObjectMapper om)

EmbeddedDocViewResponseHandler

public EmbeddedDocViewResponseHandler(Class<T> docType,
                                      org.codehaus.jackson.map.ObjectMapper om,
                                      boolean ignoreNotFound)
Method Detail

success

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

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


Copyright © 2011. All Rights Reserved.