org.ektorp.impl
Class EmbeddedDocViewResponseHandler<T>
java.lang.Object
org.ektorp.http.StdResponseHandler<List<T>>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
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.