public class ListResponseWriter<T extends com.unboundid.scim2.common.ScimResource> extends Object
| Constructor and Description |
|---|
ListResponseWriter(OutputStream outputStream)
Create a new ListResponseOutputStream that will write to the provided
output stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
itemsPerPage(int itemsPerPage)
Write the itemsPerPage to the output stream immediately if no resources
have been streamed, otherwise it will be written after the resources array.
|
void |
resource(T scimResource)
Write the result resource to the output stream immediately.
|
void |
startIndex(int startIndex)
Write the startIndex to the output stream immediately if no resources have
been streamed, otherwise it will be written after the resources array.
|
void |
totalResults(int totalResults)
Write the totalResults to the output stream immediately if no resources
have been streamed, otherwise it will be written after the resources array.
|
public ListResponseWriter(OutputStream outputStream) throws IOException
outputStream - The output stream to write to.IOException - If an exception occurs while writing to the output
stream.public void startIndex(int startIndex) throws IOException
startIndex - The startIndex to write.IOException - If an exception occurs while writing to the output
stream.public void itemsPerPage(int itemsPerPage) throws IOException
itemsPerPage - The itemsPerPage to write.IOException - If an exception occurs while writing to the output
stream.public void totalResults(int totalResults) throws IOException
totalResults - The totalResults to write.IOException - If an exception occurs while writing to the output
stream.public void resource(T scimResource) throws IOException
scimResource - The resource to write.IOException - If an exception occurs while writing to the output
stream.Copyright © 2015–2016 UnboundID Corp.. All rights reserved.