org.ektorp.impl
Class EmbeddedDocViewResponseHandler<T>
java.lang.Object
org.ektorp.http.StdResponseHandler<java.util.List<T>>
org.ektorp.impl.EmbeddedDocViewResponseHandler<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- ResponseCallback<java.util.List<T>>
public class EmbeddedDocViewResponseHandler<T>
- extends StdResponseHandler<java.util.List<T>>
Reads view result and extracts documents and maps them to the specified type.
Threadsafe.
- Author:
- henrik lundgren
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbeddedDocViewResponseHandler
public EmbeddedDocViewResponseHandler(java.lang.Class<T> docType,
org.codehaus.jackson.map.ObjectMapper om)
EmbeddedDocViewResponseHandler
public EmbeddedDocViewResponseHandler(java.lang.Class<T> docType,
org.codehaus.jackson.map.ObjectMapper om,
boolean ignoreNotFound)
success
public java.util.List<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<java.util.List<T>>- Overrides:
success in class StdResponseHandler<java.util.List<T>>
- Throws:
java.lang.Exception
Copyright © 2011. All Rights Reserved.