public final class ToListResultsHandler extends Object implements ResultsHandler
ResultsHandler
which stores all connector objects into a list
retrievable with getObjects()
.Constructor and Description |
---|
ToListResultsHandler() |
Modifier and Type | Method and Description |
---|---|
List<ConnectorObject> |
getObjects() |
boolean |
handle(ConnectorObject object)
Invoked each time a matching
ConnectorObject is returned from a
query request. |
public boolean handle(ConnectorObject object)
ResultsHandler
ConnectorObject
is returned from a
query request.handle
in interface ResultsHandler
object
- The matching ConnectorObject.true
if this handler should continue to be notified of
any remaining matching ConnectorObjects, or false
if the
remaining ConnectorObjects should be skipped for some reason
(e.g. a client side size limit has been reached or the failed to
handle the last item). If returns false
the last items
should be considers unhandled and in next page request it should
be the first item.public List<ConnectorObject> getObjects()
Copyright © 2019. All rights reserved.