org.ektorp.impl
Class PageResponseHandler<T>

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

public class PageResponseHandler<T>
extends StdResponseHandler<Page<T>>

Author:
henrik

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

PageResponseHandler

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

PageResponseHandler

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

success

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

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


Copyright © 2011. All Rights Reserved.