microsoft.exchange.webservices.data
Class FindItemResponse<TItem extends Item>

java.lang.Object
  extended by microsoft.exchange.webservices.data.ServiceResponse
      extended by microsoft.exchange.webservices.data.FindItemResponse<TItem>
Type Parameters:
TItem - The type of items that the opeartion returned.

public final class FindItemResponse<TItem extends Item>
extends ServiceResponse

Represents the response to a item search operation.


Constructor Summary
protected FindItemResponse(boolean isGrouped, PropertySet propertySet)
          Initializes a new instance of the FindItemResponse class.
 
Method Summary
 GroupedFindItemsResults<TItem> getGroupedFindResults()
          Gets a grouped list of items matching the specified search criteria that were found in Exchange.
 FindItemsResults<TItem> getResults()
          Gets the results of the search operation.
protected  void readElementsFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
          Reads response elements from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.ServiceResponse
getBatchProcessingStopped, getErrorCode, getErrorDetails, getErrorMessage, getErrorProperties, getResult, internalThrowIfNecessary, loaded, loadExtraErrorDetailsFromXml, loadFromXml, mapErrorCodeToErrorMessage, parseMessageXml, setErrorMessage, throwIfNecessary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindItemResponse

protected FindItemResponse(boolean isGrouped,
                           PropertySet propertySet)
Initializes a new instance of the FindItemResponse class.

Parameters:
isGrouped - if set to true if grouped.
propertySet - The property Set
Method Detail

readElementsFromXml

protected void readElementsFromXml(microsoft.exchange.webservices.data.EwsServiceXmlReader reader)
                            throws java.lang.Exception
Reads response elements from XML.

Overrides:
readElementsFromXml in class ServiceResponse
Parameters:
reader - ,The reader
Throws:
java.lang.Exception - the exception

getGroupedFindResults

public GroupedFindItemsResults<TItem> getGroupedFindResults()
Gets a grouped list of items matching the specified search criteria that were found in Exchange. ItemGroups is null if the search operation did not specify grouping options.

Returns:
the grouped find results

getResults

public FindItemsResults<TItem> getResults()
Gets the results of the search operation.

Returns:
the results