javax.wbem.client

Class EnumerateResponse<E>

public class EnumerateResponse<E> extends Object

This class is a container that stores the information from a Pull request.

Parameters: Type Parameter

Constructor Summary
EnumerateResponse(String context, CloseableIterator<E> responses, boolean end)
Ctor.
Method Summary
StringgetContext()
Get the context that can be used for a subsequent pull request
CloseableIterator<E>getResponses()
Get the CloseableIterator for the returned CIM Elements.
booleanisEnd()
If true, there are no more elements to be returned.

Constructor Detail

EnumerateResponse

public EnumerateResponse(String context, CloseableIterator<E> responses, boolean end)
Ctor.

Parameters: context The enumeration context returned. This will be used for any future calls for this particular enumeration. responses The results of the operation. end True if this is the last of the results; false otherwise.

Method Detail

getContext

public String getContext()
Get the context that can be used for a subsequent pull request

Returns: The Enumeration Context returned from the server.

getResponses

public CloseableIterator<E> getResponses()
Get the CloseableIterator for the returned CIM Elements.

Returns: CloseableIterator for the elements returned.

isEnd

public boolean isEnd()
If true, there are no more elements to be returned.

Returns: true: if this is the last of the results; false: otherwise.

Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.