public class SimpleSearchResults<T extends com.unboundid.scim2.common.ScimResource> extends ListResponseStreamingOutput<T>
| Constructor and Description |
|---|
SimpleSearchResults(ResourceTypeDefinition resourceType,
javax.ws.rs.core.UriInfo uriInfo)
Create a new SimpleSearchResults for results from a search operation.
|
| Modifier and Type | Method and Description |
|---|---|
SimpleSearchResults |
add(T resource)
Add a resource to include in the search results.
|
SimpleSearchResults |
addAll(Collection<T> resources)
Add resources to include in the search results.
|
void |
write(ListResponseWriter<T> os)
Start streaming the contents of the list response.
|
writepublic SimpleSearchResults(ResourceTypeDefinition resourceType, javax.ws.rs.core.UriInfo uriInfo) throws com.unboundid.scim2.common.exceptions.BadRequestException
resourceType - The resource type definition of result resources.uriInfo - The UriInfo from the search operation.com.unboundid.scim2.common.exceptions.BadRequestException - if the filter or paths in the search operation
is invalid.public SimpleSearchResults add(T resource) throws com.unboundid.scim2.common.exceptions.ScimException
resource - The resource to add.com.unboundid.scim2.common.exceptions.ScimException - If an error occurs during filtering or setting the
meta attributes.public SimpleSearchResults addAll(Collection<T> resources) throws com.unboundid.scim2.common.exceptions.ScimException
resources - The resources to add.com.unboundid.scim2.common.exceptions.ScimException - If an error occurs during filtering or setting the
meta attributes.public void write(ListResponseWriter<T> os) throws IOException
write in class ListResponseStreamingOutput<T extends com.unboundid.scim2.common.ScimResource>os - The list response output stream used to stream back elements of
the list response.IOException - if an error occurs while writing.Copyright © 2015–2016 UnboundID Corp.. All rights reserved.