microsoft.exchange.webservices.data.core.response
Class GetItemResponse

java.lang.Object
  extended by microsoft.exchange.webservices.data.core.response.ServiceResponse
      extended by microsoft.exchange.webservices.data.core.response.GetItemResponse
All Implemented Interfaces:
IGetObjectInstanceDelegate<ServiceObject>

public final class GetItemResponse
extends ServiceResponse
implements IGetObjectInstanceDelegate<ServiceObject>

Represents a response to an individual item retrieval operation.


Constructor Summary
GetItemResponse(Item item, PropertySet propertySet)
          Initializes a new instance of the class.
 
Method Summary
 Item getItem()
          Gets the item that was retrieved.
 ServiceObject getObjectInstanceDelegate(ExchangeService service, String xmlElementName)
          Gets the object instance delegate.
protected  void readElementsFromXml(EwsServiceXmlReader reader)
          Reads response elements from XML.
 
Methods inherited from class microsoft.exchange.webservices.data.core.response.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

GetItemResponse

public GetItemResponse(Item item,
                       PropertySet propertySet)
Initializes a new instance of the class.

Parameters:
item - the item
propertySet - the property set
Method Detail

readElementsFromXml

protected void readElementsFromXml(EwsServiceXmlReader reader)
                            throws InstantiationException,
                                   IllegalAccessException,
                                   Exception
Reads response elements from XML.

Overrides:
readElementsFromXml in class ServiceResponse
Parameters:
reader - the reader
Throws:
InstantiationException - the instantiation exception
IllegalAccessException - the illegal access exception
Exception - the exception

getItem

public Item getItem()
Gets the item that was retrieved.

Returns:
the item

getObjectInstanceDelegate

public ServiceObject getObjectInstanceDelegate(ExchangeService service,
                                               String xmlElementName)
                                        throws Exception
Gets the object instance delegate.

Specified by:
getObjectInstanceDelegate in interface IGetObjectInstanceDelegate<ServiceObject>
Parameters:
service - accepts ExchangeService
xmlElementName - accepts String
Returns:
Name
Throws:
Exception - throws exception


Copyright © 2012–2015 Microsoft. All rights reserved.